undefined symbol "GetName" - 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 "GetName" (
/showthread.php?tid=513598)
undefined symbol "GetName" -
EzioRock - 17.05.2014
I get an error.I searched everywhere ut didnt find the solution so..plz help me fix it.
2 errors
Код:
C:\Users\user\Desktop\Xtream Gaming\filterscripts\LuxAdmin.pwn(6067) : error 017: undefined symbol "GetName"
C:\Users\user\Desktop\Xtream Gaming\filterscripts\LuxAdmin.pwn(6076) : error 017: undefined symbol "GetName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Line 6067
Код:
format(string, 128, "Admin %s is Now Onduty! ", GetName(playerid));
Line 6076
Код:
format(string, 128, "Admin %s is Now Offduty! ", GetName(playerid));
Im new At scripting..
Re: undefined symbol "GetName" -
SAMProductions - 17.05.2014
Add This on the same place :-
pawn Код:
new GetName[MAX_PLAYER_NAME];
GetPlayerName(playerid, GetName, sizeof(GetName));
or Add This somewhere in your GameMode :-
pawn Код:
stock GetName(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
return pName;
}
Re: undefined symbol "GetName" -
Smileys - 17.05.2014
do you have a function called GetName( playerid )?
if not, add this;
pawn Код:
stock GetName( playerid )
{
new pName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, pName, sizeof( pName ) );
return pName;
}
Re: undefined symbol "GetName" -
EzioRock - 17.05.2014
Thx a lot guys +rep to All 3