AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What is an identifier? (https://forums.alliedmods.net/showthread.php?t=55524)

XNaRu7oX 05-23-2007 20:30

What is an identifier?
 
Sorry, I'm a beginner in scripting and I don't know what an identifier is.
Can someone tell me because I get many errors when trying to compile someone's plugin that I edited.
Errors are below.
/home/groups/amxmodx/tmp3/php2g3BhC.sma(35 -- 36) : error 001: expected token: ",", but found "-identifier-"
/home/groups/amxmodx/tmp3/php2g3BhC.sma(36 -- 37) : error 001: expected token: ",", but found "-identifier-"
/home/groups/amxmodx/tmp3/php2g3BhC.sma(37 -- 38) : error 001: expected token: ",", but found "-identifier-"
/home/groups/amxmodx/tmp3/php2g3BhC.sma(37 -- 38) : fatal error 107: too many error messages on one line

scrtxxcaz 05-23-2007 23:50

Re: What is an identifier?
 
post your enitre code

regalis 05-24-2007 18:43

Re: What is an identifier?
 
Next time post your better in [C O D E] or [S M A L L] tags ;)
Your problem is here:
Code:

p_enable = register_cvar("sm_enable", "1");
p_kills_noob = register_cvar("sm_kills_noob", "35");
p_kills_average = register_cvar("sm_kills_average", "80"
p_kills_skilled = register_cvar("sm_kills_skilled", "160"
p_kills_pro = register_cvar("sm_kills_pro", "325"
p_kills_expert = register_cvar("sm_kills_expert", "500"
p_kills_killdemon = register_cvar("sm_kills_kill_demon", "1000"


You have forgotten the closing brackets ");" on some lines...
The indentifier is the next variable which is seen by the compiler....but he don't want to see a variable. he would like to see an ending bracket ;)

greetz regalis


All times are GMT -4. The time now is 10:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.