31.10.2010, 14:22
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/skatepark", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,1893.8850,-1388.2507,13.5703); SendClientMessage(playerid, COLOR_BLACK , "Have fun in skatepark!"); // Do something here } if (strcmp("/commands", cmdtext, true, 10) == 0) { SendClientMessage(playerid,COLOR_YELLOW, "/skatepark"); } if (strcmp("/kill", cmdtext, true, 10) == 0) SetPlayerHealth(playerid,0.0); } return 1; } return 0; }
Код:
And I get this error C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens.pwn(136) : error 010: invalid function or declaration C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens.pwn(138) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.