for(i = 0; i < MAXTUZ; i++) {
stock Tuz_OnPlayerUpdate(playerid){#define HOLDING(%0) ((newkeys & (%0)) == (%0))new newkeys,l,u;GetPlayerKeys(playerid, newkeys, l, u);new i;new skin = GetPlayerSkin(playerid);for(i = 0; i < MAXTUZ; i++){ if(IsValidFire(i)) { if( IsPlayerInRangeOfPoint(playerid, 15, Tuz[TuzPos][0], Tuz[TuzPos][1], Tuz[TuzPos][2])) { new skin = GetPlayerSkin(playerid); if(PlayerInfo[playerid][Animban] = 0 && skin != 277 && skin != 278 && skin != 279) { format(stringx, sizeof(stringx), \"Rosszul lettél, oka: Égés\"); strmid(PlayerInfo[playerid][serules1], stringx, 0, strlen(stringx), 255); SendClientMessage(playerid, COLOR_LIGHTRED,stringx); SendClientMessage(playerid, COLOR_LIGHTRED, \"Hívd a tûzoltókat! (( /112 ))\"); PlayerInfo[playerid][Animban] = 1; healthplayer[playerid] = 0; ApplyAnimation(playerid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0); TogglePlayerControllable(playerid,0); return 1; } //GiveHealth(playerid,-0.1); } if(HOLDING(KEY_FIRE)) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { for(i = 0; i < MAXTUZ; i++) { if(IsValidFire(i)) { if(IsPlayerAimingAt(playerid, Tuz[TuzPos][0], Tuz[TuzPos][1], Tuz[TuzPos][2], 2.5) && IsPlayerInRangeOfPoint(playerid, 20.0, Tuz[TuzPos][0], Tuz[TuzPos][1], Tuz[TuzPos][2])) { Tuz[TuzHP]-=2; if(Tuz[TuzHP] <= 0) { Tuz_Torles(i); //OnTuzoltas(i,playerid); } } } } } else if(GetPlayerWeapon(playerid) == 42 && PlayerFaces(playerid, Tuz[TuzPos][0], Tuz[TuzPos][1], Tuz[TuzPos][2], 1) && IsPlayerInRangeOfPoint(playerid, 4, Tuz[TuzPos][0], Tuz[TuzPos][1], Tuz[TuzPos][2])) { Tuz[TuzHP]-=2; if(Tuz[TuzHP] <= 0) { Tuz_Torles(i); //OnTuzoltas(i,playerid); } } }}}return 1;}
for (new i = 0; i < MAXTUZ; i ++){
Probáld meg így ezt a sort kicserélni és ezt tedd helyette: for (new i = 0; i < MAXTUZ; i ++){
if(PlayerInfo[playerid][Animban] == 0 && skin != 277 && skin != 278 && skin != 279)
main( ){ print(\"1\"); for( new i = 0; i < 10; i++ ) { print(\"2\"); if( i == 5 ) { print(\"3\"); } } print(\"4\");}
Legtöbbször ajánlani szoktam a print, printf féle praktikát.Minden lekérdezéskor, ciklusoknál, ... megadok egy számot amit kiíratok a a konzolba. Így tudom ellenõrizni hogyhol lehet a hiba. main( ){ print(\"1\"); for( new i = 0; i < 10; i++ ) { print(\"2\"); if( i == 5 ) { print(\"3\"); } } print(\"4\");}
A main() az OnGameModeInit() után hívódik meg.Tehát abban keresd a ludast.