FS-eket nézd meg ill. nézt át a modot (olyan dolgokat amiket nemrég raktál be.) azok okozhatják a problémát. És egy server log-ot is bemásolhatsz ide!
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;}
Szerintem pluginhiba:http://forum.sa-mp.com/forumdisplay.php?f=18
És, meg találtam a hibát... 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;} Ebben mi lenne a hiba? :hmmm: [/quote]Megnéztem, ebben van a hiba.Dupla hozzászólás automatikusan összefûzve. ( 2012. október 29. - 09:14:14 )Pontosabban a hiba: #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++) {...}
#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++) {...}
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])) { 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;}
Próbáld így: 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])) { 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;}
Mi a warning?
C:\\***\\***.pwn(65635) : warning 211: possibly unintended assignment
if(PlayerInfo[playerid][Animban] = 0 && skin != 277 && skin != 278 && skin != 279)