Szerző Téma: Re:Itt kérdezz warningot/error -t!  (Megtekintve 470 alkalommal)

Re:Itt kérdezz warningot/error -t!
« Dátum: 2016. Február 01. - 16:07:14 »
0 Show voters
.
« Utoljára szerkesztve: 2016. Február 01. - 17:28:49 írta Rolplay »

Nem elérhető Brand

  • 273
    • Profil megtekintése
Re:Itt kérdezz warningot/error -t!
« Válasz #1 Dátum: 2016. Augusztus 10. - 17:25:34 »
0 Show voters
Sziasztok! Az lenne a problémám ,hogy 2 warningot kapok a következő sorokra:
 
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(IsVehicleAircraft(vehicleid))
    {
new weapons[ 13 ][ 2 ];
for( new i = 0; i < 13; i++ )
GetPlayerWeaponData( playerid, i, weapons[ i ][ 0 ], weapons[ i ][ 1 ] );
ResetPlayerWeapons( playerid );
for( new i = 0; i < 13; i++ )
GivePlayerWeapon( playerid, weapons[ i ][ 0 ], weapons[ i ][ 1 ] );
    }
    return 1;
}

 
warning 219: local variable \"vehicleid\" shadows a variable at a preceding level
warning 219: local variable \"vehicleid\" shadows a variable at a preceding level
Ezt a figyelmeztetést kapom a 2 számlálós ciklusra.

Re:Itt kérdezz warningot/error -t!
« Válasz #2 Dátum: 2016. Augusztus 10. - 17:36:51 »
0 Show voters
Idézetet írta: Brand date=1470842734\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"59378\" data-ipsquote-contentclass=\"forums_Topic
Sziasztok! Az lenne a problémám ,hogy 2 warningot kapok a következő sorokra:
 
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(IsVehicleAircraft(vehicleid))
    {
new weapons[ 13 ][ 2 ];
for( new i = 0; i < 13; i++ )
GetPlayerWeaponData( playerid, i, weapons[ i ][ 0 ], weapons[ i ][ 1 ] );
ResetPlayerWeapons( playerid );
for( new i = 0; i < 13; i++ )
GivePlayerWeapon( playerid, weapons[ i ][ 0 ], weapons[ i ][ 1 ] );
    }
    return 1;
}

 
warning 219: local variable \"vehicleid\" shadows a variable at a preceding level
warning 219: local variable \"vehicleid\" shadows a variable at a preceding level
Ezt a figyelmeztetést kapom a 2 számlálós ciklusra.
 
Ez MTA segítségkérő, ez sa:mp gondolom

Nem elérhető Brand

  • 273
    • Profil megtekintése
Re:Itt kérdezz warningot/error -t!
« Válasz #3 Dátum: 2016. Augusztus 10. - 18:05:40 »
0 Show voters
Elnézést, rossz helyre, bocsi  :(

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal