Question about [MAX_PLAYERS] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about [MAX_PLAYERS] (
/showthread.php?tid=116581)
Question about [MAX_PLAYERS] -
Tigerbeast11 - 29.12.2009
i have this:
can i assign it to a word rather than an interger?
Can it be done without defining stolen?
Re: Question about [MAX_PLAYERS] -
RyDeR` - 29.12.2009
Use bool: true when it's stolen false when not.
Re: Question about [MAX_PLAYERS] -
Tigerbeast11 - 29.12.2009
thats sort of the same as using 1 for stolen and 0 for not. I want to use words like STOLEN or RESPAWNED without defining them.
Is this possible? If it sn't, just say "Impossible"
Re: Question about [MAX_PLAYERS] -
Correlli - 29.12.2009
Instead of this:
pawn Код:
#define STOLEN (1)
#define RESPAWNED (2)
car[playerid] = STOLEN;
car[playerid] = RESPAWNED;
Use this:
pawn Код:
car[playerid] = 1;
car[playerid] = 2;
Is this what you want? Or do you want to put the words in it like:
pawn Код:
new
myString[MAX_PLAYERS][8];
myString[playerid] = "stolen";
or like:
pawn Код:
format(myString[playerid], sizeof(myString), "stolen");
Re: Question about [MAX_PLAYERS] -
Tigerbeast11 - 29.12.2009
I want to do this:
pawn Код:
car[playerid] = STOLEN;
car[playerid] = RESPAWNED;
but without this:
pawn Код:
#define STOLEN (1)
#define RESPAWNED (2)
is it possible?
Re: Question about [MAX_PLAYERS] -
Correlli - 29.12.2009
Quote:
Originally Posted by Don Correlli
Use this:
pawn Код:
car[playerid] = 1; car[playerid] = 2;
|
Re: Question about [MAX_PLAYERS] -
Tigerbeast11 - 29.12.2009
Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Don Correlli
Use this:
pawn Код:
car[playerid] = 1; car[playerid] = 2;
|
|
but i wanna use words instead of numbers
Re: Question about [MAX_PLAYERS] -
Correlli - 29.12.2009
I don't really understand what you want.
Re: Question about [MAX_PLAYERS] -
Tigerbeast11 - 29.12.2009
sorry
i mean like this:
but i don't want to define stolen... Is this possible?
Re: Question about [MAX_PLAYERS] -
Grim_ - 29.12.2009
Make it hold the word "STOLEN"?