Jump to content
  • 0

Problema sistem de turfs


Jimmi

Question

Problema intalnita (descriere):A incercat The Row sa imi faca sistemul de turf-uri dar a trebuit sa iasa....Imi da erori pe care habar nu am cum sa le rezolv
Ero(area / rile) / warning-(ul / urile):

C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(1471) : error 025: function heading differs from prototype
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22358) : error 017: undefined symbol "WarWon"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22359) : error 017: undefined symbol "WarWon"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22363) : error 017: undefined symbol "turf"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22363) : warning 215: expression has no effect
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22363) : error 001: expected token: ";", but found "]"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22363) : error 029: invalid expression, assumed zero
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(22363) : fatal error 107: too many error messages on one line

Liniile de cod / sursa / script-ul(obligatoriu):

UpdateGangZone( const zoneID )
{
	new szString[ 128 ], z_id = zoneID - 1;
	GZ_DATA[ z_id ][ zColor ] = ( WarWon == 5 ) ? ( COLOR_CHICHAGOFF ) : ( WarWon == 6 ) ? ( COLOR_SMINIONA ) : ( WarWon == 12 ) ? ( COLOR_FORLENZAFF ) : ( COLOR_ZALUCHIFF );
	GZ_DATA[ z_id ][ zOwner ] = WarWon;
	GZ_DATA[ z_id ][ zOwned ] = 1;
	for( new i = 0; 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 `zones` 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;
}

Imagini / Video (optional):http://imgur.com/uwCbv6y
Ati incercat sa rezolvati singur?:Da am adaugat new WarWon si turfs dar da alte erori...

Link to comment
Share on other sites

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.