SA-MP Forums Archive
Undefined symbol "plname" - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Undefined symbol "plname" (/showthread.php?tid=200946)



Undefined symbol "plname" - Darklom - 19.12.2010

Код:
new plname[MAX_PLAYER_NAME], string[64];
I have it but..
pawn Код:
error 017: undefined symbol "plname"
error 017: undefined symbol "plname"
on line..
pawn Код:
GetPlayerName(playerid,plname,sizeof(plname));



Re: Undefined symbol "plname" - Darklom - 19.12.2010

This is haunting me!


Re: Undefined symbol "plname" - Face9000 - 19.12.2010

pawn Код:
new plname[64]
Try it.


Respuesta: Undefined symbol "plname" - admantis - 19.12.2010

pawn Код:
new plname[30];
for me it worked
P.S: set string cells to 128 unless it's a short text


Re: Undefined symbol "plname" - Darklom - 19.12.2010

Yeah tried that before and it simply gives me a set of different errors..

Код:
(474) : error 017: undefined symbol "string"
(474) : error 017: undefined symbol "string"



Respuesta: Undefined symbol "plname" - admantis - 19.12.2010

then do this
new string[128];


Re: Undefined symbol "plname" - Darklom - 19.12.2010

It goes back to undefined symbol plname


Respuesta: Undefined symbol "plname" - admantis - 19.12.2010

ohhhh where is located the new? inside the callback, command or up to all?


Re: Undefined symbol "plname" - Darklom - 19.12.2010

inside the callback


Respuesta: Undefined symbol "plname" - admantis - 19.12.2010

ok try putting the new up to all