[POMOC] Warning

Započeo MarQueZ, Septembar 28, 2011, 12:56:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Galaxy State Play ( Edit Street Storiesa - GTA RP )
Detaljan opis problema: Compilao sam mod i izbaci mi ove warninge
Dio skripte:
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(2348) : warning 209: function "IsASalesVehicle" should return a value
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(8927) : warning 204: symbol is assigned a value that is never used: "exp"
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44006) : warning 235: public function lacks forward declaration (symbol "UnsetBankRob")
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44011) : warning 235: public function lacks forward declaration (symbol "RobBank")
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44163) : warning 203: symbol is never used: "CityHallRobbedRecently"
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44163) : warning 203: symbol is never used: "GetVehicleName"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size:          10684 bytes
Code size:          1921792 bytes
Data size:         10796476 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5785 cells (23140 bytes)
Total requirements:12745336 bytes

6 Warnings.

Linije:
2348: if(IsAnOwnableCar(vehicleid))
{
    format(string,sizeof(string),"Ulazite u %s (%d)   Vlasnik: %s",vehicle, vehicleid, CarInfo[vehicleid][cOwner]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else if(IsASalesVehicle(vehicleid))
{
    format(string,sizeof(string),"Ulazite u %s (%d)   Vlasnik: Dealership",vehicle, vehicleid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string,sizeof(string),"Pisi /v buy kako bi kupili auto za $%d",GetVehiclePrice(vehicleid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}

8927:
new exp = PlayerInfo[targetid][pExp];
44006 i 44011:
public UnsetBankRob()
{
BankRobbedRecently = 0;
return 1;
}

44163: To je zadnja linija tj. nema je.

Citat:
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Mike Marquez | House of Rave is Trippy Place ! |

dragan12

Dodaj gore forward UnsetBankRob();
forward RobBank();

Sve gde imas ovako nesto:
symbol is never used
To znaci da se to ne koristi i to mozes obrisati ako ne koristis, a ako ces koristiti mozda onda nemoj brisati.
A za ovaj prvi error evo jedan citat:
Citat: System32 poslato Jul 23, 2011, 14:25:02 POSLE PODNE
kad ti dode warning 209: function "cmd_Izbaci" should return a value zanci da ti negdje fali }
Ali fali zagrada samo akd imam 26 errora?
ne ja sam par puta imao taakv problem, napravim 2 koamnde i dode mi taj warning i onda pogledam zagrade i vidim da u jednoj nema zagrade
a ako imas zagrade znaci da iznad te } dodaj return 1;

sad mi izbacuje ovaj error:
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(2350) : warning 209: function "IsASalesVehicle" should return a value
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(8929) : warning 204: symbol is assigned a value that is never used: "exp"
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44013) : error 025: function heading differs from prototype
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44164) : warning 203: symbol is never used: "CityHallRobbedRecently"
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44164) : warning 203: symbol is never used: "GetVehicleName"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Mike Marquez | House of Rave is Trippy Place ! |

Citat: [RSRP] McShakur poslato Septembar 28, 2011, 20:23:00 POSLE PODNE
sad mi izbacuje ovaj error:
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(2350) : warning 209: function "IsASalesVehicle" should return a value
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(8929) : warning 204: symbol is assigned a value that is never used: "exp"
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44013) : error 025: function heading differs from prototype
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44164) : warning 203: symbol is never used: "CityHallRobbedRecently"
C:\Users\McShakur\Desktop\Galaxy State Play\gamemodes\galaxy.pwn(44164) : warning 203: symbol is never used: "GetVehicleName"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

DAj linije erora i warninga...

2350:
else if(IsASalesVehicle(vehicleid))
8929:
new exp = PlayerInfo[targetid][pExp];
44013:
public RobBank(playerid)
44164:
To je kraj moda :S
Mike Marquez | House of Rave is Trippy Place ! |

znaci stisni ctrl+f i trazi CityHallRobbedRecently i GetVehicleName i samo obrisi...

dragan12

Citat: [RSRP] McShakur poslato Septembar 30, 2011, 10:09:28 PRE PODNE
44013:
public RobBank(playerid)
Umesto ovoga:
forward RobBank();
stavis ovako
forward RobBank(playerid);
Bila je moja greska stavio sam onako jer mi nisi dao public RobBank stavi sada tako