1 Error
#1

Hey, could someone please help me with this Error?


Код:
C:\Users\Vinay\Desktop\Samp Server\gamemodes\VinayServer.pwn(571) : error 017: undefined symbol "PlName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line 571
Код:
                format(string, sizeof(string), "Report from %s[%d]: %s", PlName(playerid), playerid, params);
Thank you in advance!
Reply
#2

pawn Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "Report from %s[%d]: %s", Name, playerid, params);
Reply
#3

pawn Код:
new PlName[MAX_PLAYERS];GetPlayerName(playerid,PlName, sizeof PlName);
format(string, sizeof(string), "Report from %s[%d]: %s", PlName[playerid], playerid, params);
edit
damm my internet is slow today ;X
Reply
#4

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "Report from %s[%d]: %s", Name, playerid, params);
Where should I add that?
Reply
#5

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "Report from %s[%d]: %s", Name, playerid, params);
Thanks it worked!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)