Undefined Symbol - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Undefined Symbol (
/showthread.php?tid=628204)
Undefined Symbol -
RobyRbb - 07.02.2017
Hello guys, I have a problem with error "Undefined symbol "playerid"
Can you help me?
Photo:
http://imgur.com/a/np1QD
Re: Undefined Symbol -
kloning1 - 07.02.2017
edited
look your code!
Код:
CMD:fspec(playeird,params[])
change to
Код:
CMD:fspec(playerid,params[])
Re: Undefined Symbol -
RobyRbb - 07.02.2017
Quote:
Originally Posted by kloning1
show your code please.
|
CMD:fspec(playeird, params[])
{
new id, string[128];
if(PlayerInfo[playerid][pAdmin] < 1)return SCM(playerid, -1, AdminOnly);
if(sscanf(params, "i", id)) return SCM(playerid, -1, "Syntax: /fspec <faction id>");
if(id < 0 || id > 17) return SCM(playerid, COLOR_RED, "ID-ul factiunii este invalid! (1-17)");
if(SpecFaction[playerid] == 0 && id == 0) return SCM(playerid, -1, "Nu esti spectator pe o factiune!");
if(id != 0 && PlayerInfo[playerid][pMember] == id) return SCM(playerid, -1, "Esti deja in aceasta factiune!");
SpecFaction[playerid] = id;
if(id == 0) return SCM(playerid, COLOR_YELLOW, "Nu mai esti specator pe o factiune.");
format(string,sizeof(string), " Esti acum spectator pe factiunea %s (%d).", NumeFactiune(id), id);
SCM(playerid, COLOR_YELLOW, string);
return 1;
}
Give me error where is "playerid"
Re: Undefined Symbol -
RobyRbb - 07.02.2017
Quote:
Originally Posted by kloning1
edited
look your code!
Код:
CMD:fspec(playeird,params[])
change to
Код:
CMD:fspec(playerid,params[])
|
Omg dude, thanks so much, I don't saw that

))