05.01.2011, 21:32
how do i fix this error
Код:
(26) : error 017: undefined symbol "PlayerName" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/lockdown", cmdtext, true, 10) == 0)
{
if(!strcmp(PlayerName(playerid), "Jack" ))
SendClientMessageToAll(COLOUR_RED,"WARNING: Abandoned Airfield On Lock Down");
MoveObject(window, 413.834960,2530.024169,20.169763, 2.500);
MoveObject(window1, 411.896423,2530.024169,20.192766, 2.500);
MoveObject(window2, 411.978424,2530.058105,20.166105, 2.500);
MoveObject(window3, 416.770385,2530.058105,20.174055, 2.500);
return 1;
}