31.12.2010, 11:45
Help!
Код:
C:\Users\Labas\Desktop\MPGC\gamemodes\MPG.pwn(7154) : error 010: invalid function or declaration C:\Users\Labas\Desktop\MPGC\gamemodes\MPG.pwn(7156) : error 010: invalid function or declaration C:\Users\Labas\Desktop\MPGC\gamemodes\MPG.pwn(7160) : error 010: invalid function or declaration
Код:
public OnPlayerEnterCheckpoint(playerid) { if(autoDB[playerid][currentCP] != -1 && (GetVehicleModel(GetPlayerVehicleID(playerid))==COACH,431 && GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { autoDB[playerid][CPnumber]++; if(autoDB[playerid][CPnumber]>=STATIONS) autoDB[playerid][CPnumber]=0; autoDB[playerid][currentCP]=SetPlayerCheckpoint(playerid,autoarray[autoDB[playerid][CPnumber]][0],autoarray[autoDB[playerid][CPnumber]][1],autoarray[autoDB[playerid][CPnumber]][2],STATION_SIZE); SetPlayerScore(playerid,GetPlayerScore(playerid)+1); new Float:buspos[3]; GetPlayerPos(playerid,buspos[0],buspos[1],buspos[2]); SetTimerEx("Buspay",3000,false,"ifff",playerid,buspos[0],buspos[1],buspos[2]); GameTextForPlayer(playerid,"Sustokite",2000,5); return 1; } DisablePlayerCheckpoint(playerid); return 1; } 7154 if(IsPlayerInCheckpoint(playerid)) { 7156 if(GetPlayerInterior(playerid)==12) //Banko komandos { DisablePlayerCheckpoint(BankasCP); ShowPlayerDialog(playerid, 60, DIALOG_STYLE_LIST, "SwedBank", "Balansas\nPadeti pinigus\nNuimti pinigus", "Pasirinkti", "Baigti"); 7160 return 1; } }