06.04.2010, 12:12
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/skydive",true)==0)
SetPlayerPos(playerid,-2342.1726,-1176.2717,2145.3945);
GivePlayerWeapon(playerid, 46, 1);
return 1;
}
if(strcmp(cmd, "/cmds", true) == 0) {
SendPlayerFormattedText(playerid,"to spawn a car do /carmenu",0);
SendPlayerFormattedText(playerid,".",0);
SendPlayerFormattedText(playerid,".",0);
SendPlayerFormattedText(playerid,".", 0);
SendPlayerFormattedText(playerid,".", 0);
return 1;
}
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(290) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(292) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(293) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(294) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(295) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(296) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.