undefined symbol "GetName"
#1

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..
Reply
#2

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;
}
Reply
#3

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;
}
Reply
#4

Thx a lot guys +rep to All 3
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)