expected token: ";", but found ")" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: expected token: ";", but found ")" (
/showthread.php?tid=582123)
expected token: ";", but found ")" -
Jimmi - 18.07.2015
Код:
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
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;
}
Re : expected token: ";", but found ")" -
KillerDVX - 18.07.2015
Show us your definition of "WarWon".