27.10.2010, 18:22
When I edit previous code to this:
I get these errors:
Код:
else if(cp[playerid] == 15) { cp[playerid] = SetPlayerRaceCheckpoint(playerid, 1, -2329.8938,-1607.2220,483.5648, 0.0,0.0,0.0, 4); cp[playerid] = 16; } else if(cp[playerid] == 16) { DisablePlayerRaceCheckpoint(playerid); SendClientMessage(playerid, 0xFFFFFAA, "Tu esi nugaletojas-sveikiname!!!"); new zaidejas1[100]; new pname[MAX_PLAYERS]; GetPlayerName(playerid, pname, sizeof(pname)); format(zaidejas1, sizeof(zaidejas1), "Lenktynes baigtos! %s jas laimejo ir gavo 10000litu!", pname); SendClientMessageToAll(0xFFFFFAA, zaidejas1); GivePlayerMoney(playerid, 10000); for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { DisablePlayerRaceCheckpoint(i); } return 1; }
Код:
C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(251) : warning 217: loose indentation C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(251) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(251) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(256) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(256) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(256) : error 004: function "OnRconCommand" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(261) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(261) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(261) : error 004: function "OnPlayerRequestSpawn" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(266) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(266) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(266) : error 004: function "OnObjectMoved" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(271) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(271) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(271) : error 004: function "OnPlayerObjectMoved" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(276) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(276) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(276) : error 004: function "OnPlayerPickUpPickup" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(282) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(282) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(282) : error 004: function "OnVehicleMod" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(287) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(287) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(287) : error 004: function "OnVehiclePaintjob" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(292) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(292) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(292) : error 004: function "OnVehicleRespray" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(297) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(297) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(297) : error 004: function "OnPlayerSelectedMenuRow" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(302) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(302) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(302) : error 004: function "OnPlayerExitedMenu" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(307) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(307) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(307) : error 004: function "OnPlayerInteriorChange" is not implemented C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(312) : warning 225: unreachable code C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(312) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(312) : error 004: function "OnPlayerKeyStateChange" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.