1 error simple help pls check
#1

Код:
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;
}
Reply
#2

pawn Код:
stock PlayerName(playerid)
{
  new name[24];
  GetPlayerName(playerid, name, 24);
  return name;
}
Reply
#3

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

thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)