Jump to content

Question

Posted

[pawn]/*AutoRace*/

new RAutoRace;

CMD:startautorace(playerid, params[])

{

if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "<!> You are not an administrator!");

if(RaceBusy == 0x01 || RaceStarted == 1) return SendClientMessage(playerid, RED, "<!> There's a race currently. Wait first till race ends!");

if(AutomaticRace == true) return SendClientMessage(playerid, RED, "<!> It's already enabled!");

    LoadRaceNames();

LoadAutoRace(RaceNames[random(TotalRaces)]);

AutomaticRace = true;

SendClientMessage(playerid, GREEN, ">> You stared auto race. The filterscript will start a random race everytime the previous race is over!");

RAutoRace = true;//3542

return 1;

}[/pawn]

Warn:

C:\Users\Samy\Desktop\DSR Clan\gamemodes\DSRCLAN.pwn(3542) : warning 204: symbol is assigned a value that is never used: "RAutoRace"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

De-ce imi da warningul asta?

senzaolo1xv.png

www.dsrclan.forumfree.it

5 answers to this question

Recommended Posts

Posted

[pawn]/*AutoRace*/

new RAutoRace;

CMD:startautorace(playerid, params[])

{

if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "<!> You are not an administrator!");

if(RaceBusy == 0x01 || RaceStarted == 1) return SendClientMessage(playerid, RED, "<!> There's a race currently. Wait first till race ends!");

if(AutomaticRace == true) return SendClientMessage(playerid, RED, "<!> It's already enabled!");

    LoadRaceNames();

LoadAutoRace(RaceNames[random(TotalRaces)]);

AutomaticRace = true;

SendClientMessage(playerid, GREEN, ">> You stared auto race. The filterscript will start a random race everytime the previous race is over!");

RAutoRace = true;//3542

return 1;

}[/pawn]

Warn:

C:\Users\Samy\Desktop\DSR Clan\gamemodes\DSRCLAN.pwn(3542) : warning 204: symbol is assigned a value that is never used: "RAutoRace"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

De-ce imi da warningul asta?

Zice ca RAutoRace nu este usat incearcal sal stergi

Posted

sus de tot...

[pawn]#pragma unused RAutoRace[/pawn]

Mai bine ar sterge ce are legatura cu RAutoRace, randurile. Este folosit doar la RAutoRace = 1, = 0.
Posted

new RAutoRace[MAX_PLAYERS];
si modifici true cu 1; RAutoRace = true; //3542 vine asa: RAutoRace = 1; //3542 Da la ce-ti foloseste? ...cum zice stuntman, sau pui:
 #pragma unused RAutoRace

Posted

new RAutoRace[MAX_PLAYERS];
si modifici true cu 1; RAutoRace = true; //3542 vine asa: RAutoRace = 1; //3542 Da la ce-ti foloseste? ...cum zice stuntman, sau pui:
 #pragma unused RAutoRace

Cand new <nume>; nu are bool: in fata poti sa pui si true, si 1, cand are bool: in fata trebuie sa pui doar true.

Fa ce ti-am spus.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.