[Pomoc]Imam 5 warninga

Započeo Dacho, Oktobar 31, 2011, 21:02:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:Galaxy -ali editovan skroz
Detaljan opis problema:Dodavao sam robbank,ali se bas i nisam najbolje snasao u tome :D imam 5 warn :D
Dio skripte:
1 warning:C:\Documents and Settings\Daniel\My Documents\Downloads\Galaxy State Play moj edit\Galaxy State Play\Galaxy State Play\Galaxy State Play\gamemodes\galaxy.pwn(2349) : warning 209: function "IsASalesVehicle" should return a value
Deo 1 warn:
    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);


2 warning:C:\Documents and Settings\Daniel\My Documents\Downloads\Galaxy State Play moj edit\Galaxy State Play\Galaxy State Play\Galaxy State Play\gamemodes\galaxy.pwn(8928) : warning 204: symbol is assigned a value that is never used: "exp"
Deo 2 warninga:
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new pnumber = PlayerInfo[targetid][pPnumber];


3 i 4 warning:C:\Documents and Settings\Daniel\My Documents\Downloads\Galaxy State Play moj edit\Galaxy State Play\Galaxy State Play\Galaxy State Play\gamemodes\galaxy.pwn(44007) : warning 235: public function lacks forward declaration (symbol "UnsetBankRob")
Deo 3 i 4 warninga:

}
public UnsetBankRob()
{
BankRobbedRecently = 0;
return 1;
}
public RobBank(playerid)
{
new string[128];
if(IsPlayerInRangeOfPoint(playerid, 2, 2309.6060,-4.0211,26.7422))
{
if(RobbingTime[playerid] > 0)
{

5 warning:C:\Documents and Settings\Daniel\My Documents\Downloads\Galaxy State Play moj edit\Galaxy State Play\Galaxy State Play\Galaxy State Play\gamemodes\galaxy.pwn(44164) : warning 203: symbol is never used: "CityHallRobbedRecently"
Deo 5 warninga:
A to mi je zadnji red i tamo nema nis praazno je ali kad upisem tu rec izbaci kod nevova
new CityHallRobbedRecently;
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Citat: Marley poslato Jun 16, 2012, 17:11:23 POSLE PODNE
Kurcina  :P

Citat: Dude poslato Jun 16, 2012, 17:14:21 POSLE PODNE
čobane šta je ovo?

Respect for David (Sabljak) A.k.A SABO(T)

dragan12

warning 203: symbol is never used: "CityHallRobbedRecently" - Ne koristi se iako ti netreba mozes da ga obrises
warning 235: public function lacks forward declaration (symbol "UnsetBankRob") - Fali ti forward UnsetBankRob();
warning 204: symbol is assigned a value that is never used: "exp" - Kao i prvo
warning 209: function "IsASalesVehicle" should return a value - Stavi return 1; ispred zadnje }

vlado_plavsic

1. Warn,Zaboravio si da stavis return 1;
2. Warn, Var. exp se nigde ne koristi,izbrisi je
3. Warn, Potrebno je da dodas forward UnsetBankRob ();
4. Warn, CityHallRobbedRecently ti se nigde ne koristi,izbrisi je

EDIT: Gagi pre mene :D
Poslednja Izmena: Oktobar 31, 2011, 21:09:17 POSLE PODNE od Vlado_Plavsic aka Plavsa