It is currently 16 Jan 2019 10:03






Reply to topic  [ 3 posts ] 
 Imi da eroare la script [Rezolvat] 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 14 May 2017 22:26
Posts: 7
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut! Cine ma poate ajuta cu acest script!
- nu inceleg la ce da eroare la linia 133?
Script:
| Afiseaza codul
public CmdBuyPaladin(id)
{
if ( !is_user_alive(id) )
{
client_print(id,print_chat, "[CSO] To buy Paladin You need to be alive!")
return PLUGIN_HANDLED
}

new money = cs_get_user_money(id)

if (money >= get_pcvar_num(cvar_cost))
{
cs_set_user_money(id, money - get_pcvar_num(cvar_cost))
give_item(id, "weapon_ak47")
Line 133: g_Had_Base(id) = true
}

else
{
client_print(id, print_chat, "[CSO] You dont hav enough money to buy Paladin Cost $%d ", get_pcvar_num(cvar_cost))
}
return PLUGIN_HANDLED
}

Eroare
| Afiseaza codul
Paladin.sma(133) : error 012: invalid function call, not a valid address
Paladin.sma(133) : warning 215: expression has no effect
Paladin.sma(133) : error 001: expected token: ";", but found ")"
Paladin.sma(133) : error 029: invalid expression, assumed zero
Paladin.sma(133) : fatal error 107: too many error messages on one line


PS: Va multumesc de raspunsuri!


Last edited by faKe91 on 09 Jan 2019 17:56, edited 3 times in total.

Mutat la modificari-pluginuri



09 Jan 2019 14:31
Profile multumesc WWW
Online
Moderator ajutator
Moderator ajutator
User avatar

Joined: 07 Oct 2014 17:49
Posts: 1416
Location: Republica Moldova, Chișinău
Detinator Steam: Da
CS Status: I <3 Heavy Metal
SteamID: dogseatmypancreas
Reputatie: Moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
Code:
g_Had_Base[id]


Posteaza intreaga sursa.


09 Jan 2019 15:39
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 14 May 2017 22:26
Posts: 7
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Am rezolvat mersi!


09 Jan 2019 16:02
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group