i get error 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: i get error undefined symbol (
/showthread.php?tid=392561)
i get error undefined symbol -
XaocX - 14.11.2012
I get this and many others error which are almost the same..
pawn Код:
error 017: undefined symbol "PlayerName"
and i have all of this funcion in my gamemode
pawn Код:
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name, sizeof(name));
return name;
}
and all others but i'm getting this error on some simple message
pawn Код:
format(string, 128, "test: %s", PlayerName(playerid));
SendClientMessage(playerid, -1, string);
any ideas?
Re : i get error undefined symbol -
lelemaster - 14.11.2012
]stock PlayerName(playerid)
^ ??
Re: i get error undefined symbol -
XaocX - 14.11.2012
i have made a mistake will i was uploading it so.. sry :/
it's like that:
pawn Код:
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name, sizeof(name));
return name;
}
Re : i get error undefined symbol -
lelemaster - 14.11.2012
What are the other errors? Because I don't see any errors in the codes you gave us.
Re: i get error undefined symbol -
XaocX - 14.11.2012
undefined symbol but some other things that i already have :/