1 error simple help pls check - 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: 1 error simple help pls check (
/showthread.php?tid=235294)
1 error simple help pls check -
Davz*|*Criss - 05.03.2011
Код:
C:\Users\GHAZANFAR\Desktop\SA-MP\filterscripts\Cmds.pwn(162) : error 017: undefined symbol "PlayerName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Код:
dcmd_id(playerid, params[])
{
new pid, str[128];
if(sscanf(params, "u", pid)) return SendClientMessage(playerid, 0xFFFF00AA, "USAGE: /ID (Part Of PlayerName)");
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, 0xFFFF00AA, "Incorrect ID or The Player is not active.");
format(str, sizeof(str), "Player %s |ID %d|", pid, PlayerName(pid));
SendClientMessage(playerid,0xFFFF00A, str);
return 1;
}
Re: 1 error simple help pls check -
xir - 05.03.2011
pawn Код:
stock PlayerName(playerid)
{
new name[24];
GetPlayerName(playerid, name, 24);
return name;
}
Re: 1 error simple help pls check -
iJumbo - 05.03.2011
you dont have defined the PlayerName function... put this under your script not in a callback
pawn Код:
PlayerName(playerid)
{
new pname[24];
GetPlayerName(playerid, pname, 24);
return pname;
}
EIDT:
sorry xir we send the reply at the same time xD
Re: 1 error simple help pls check -
Davz*|*Criss - 05.03.2011
thnx