27.12.2016, 18:51
PAWN ERRORS:
Lines 15671 to 15685
Код:
(15679) : error 001: expected token: ")", but found "return" (15683) : error 029: invalid expression, assumed zero (15683) : warning 215: expression has no effect (15683) : error 001: expected token: ";", but found ")" (15683) : error 029: invalid expression, assumed zero (15683) : fatal error 107: too many error messages on one line
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) { if(GetIntVar(damagedid, "JustDied") == 1 || GetIntVar(damagedid, "JustDied") == 2 && isAFK{damagedid}) return 0; if(Factions[PlayerInfo[playerid][pFaction]][fType] != FACTION_LEGAL) { if(TazerActive{playerid} && weaponid == WEAPON_SILENCED && IsPlayerInAnyVehicle(playerid) == 0) { if(!Dead{damagedid}) return 1; if(IsPlayerInAnyVehicle(damagedid) && !IsABiker((GetPlayerVehicleID(damagedid))) return 1; // ERROR LINE: 15679 new Float:pos[3]; GetPlayerPos(damagedid, pos[0], pos[1], pos[2]); if(!Tazed{damagedid}) && GetPlayerDistanceFromPoint(playerid, pos[0], pos[1], pos[2]) < 25) // ERROR LINE: 15683 { if(IsPlayerInAnyVehicle(damagedid)) RemovePlayerFromVehicle(damagedid);