05.03.2011, 11:49
Код:
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; }