expected token: ";", but found ")"
#1

Код:
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22055) : error 029: invalid expression, assumed zero
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22055) : warning 215: expression has no effect
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22055) : error 001: expected token: ";", but found ")"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22055) : error 029: invalid expression, assumed zero
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22055) : fatal error 107: too many error messages on one line
22055
Код:
if(WarWon == 5)
All code
Код:
public UpdateGangZone(i)
{
    new szString[ 128 ], z_id = zoneID - 1;
    if(WarWon == 5)
    {
        GZ_DATA[ z_id ][ zColor ] = COLOR_CHICHAGOFF;
        return 1;
    }
    else if (WarWon == 6)
    {
        GZ_DATA[ z_id ][ zColor ] = COLOR_SMINIONA;
         return 1;
    }
    else if(WarWon == 12)
    {
         GZ_DATA[ z_id ][ zColor ] = COLOR_FORLENZAFF;
         return 1;
    }
    else if(WarWon == 13)
    {
         GZ_DATA[ z_id ][ zColor ] = COLOR_ZALUCHIFF;
         return 1;
    }
    GZ_DATA[ z_id ][ zOwner ] = WarWon;
    GZ_DATA[ z_id ][ zOwned ] = 1;
    for(new i; i< MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if( turf[ i ] != 0 )
        {
            GangZoneHideForPlayerEx( i, GZ_DATA[ z_id ][ zID ] );
            GangZoneShowForPlayerEx( i, GZ_DATA[ z_id ][ zID ], GZ_DATA[ z_id ][ zColor ] );
        }
    }
    format( szString, 128, "UPDATE `gangzones` SET `Color` = %d, `Owner` = %d, `Owned` = %d WHERE `ID` = %d", GZ_DATA[ z_id ][ zColor ], GZ_DATA[ z_id ][ zOwner ], GZ_DATA[ z_id ][ zOwned ], zoneID );
    mysql_query( szString );
    return 1;
}
Reply
#2

Show us your definition of "WarWon".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)