Making A Server Variable? - 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)
+--- Thread: Making A Server Variable? (
/showthread.php?tid=292811)
Making A Server Variable? -
Ely - 25.10.2011
How Would I Make One? Like A Bool Thanks
Ellie
Re: Making A Server Variable? -
Ely - 25.10.2011
Anybody?
I Reallly Need Something Like
new ResetMR[False];
ResetMR = True;
Re: Making A Server Variable? -
=WoR=Varth - 25.10.2011
https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables
Re: Making A Server Variable? -
Ely - 25.10.2011
Quote:
Originally Posted by =WoR=Varth
|
Could you give me a example of what i want pleease? im new sorry
Ellie
Re: Making A Server Variable? -
[MWR]Blood - 25.10.2011
Quote:
Originally Posted by Ely
Could you give me a example of what i want pleease? im new sorry
Ellie
|
The example is in the link you have been just given. Look a bit more.
Re: Making A Server Variable? -
Ely - 25.10.2011
Quote:
Originally Posted by [MWR]Blood
The example is in the link you have been just given. Look a bit more.
|
Yeah i knows but when i put at the top
Код:
new ResetMR = False;
And Under A Command
It Says...
Код:
C:\Users\Ellie\Desktop\Server\gamemodes\Game.pwn(556) : error 017: undefined symbol "False"
C:\Users\Ellie\Desktop\Server\gamemodes\Game.pwn(556) : error 008: must be a constant expression; assumed zero
C:\Users\Ellie\Desktop\Server\gamemodes\Game.pwn(1002) : error 017: undefined symbol "False"
C:\Users\Ellie\Desktop\Server\gamemodes\Game.pwn(1002) : warning 204: symbol is assigned a value that is never used: "ResetMR"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: Making A Server Variable? -
[MWR]Blood - 25.10.2011
It's
false, not
False. Don't use caps. Same with
true.
Re: Making A Server Variable? -
Ely - 25.10.2011
Quote:
Originally Posted by [MWR]Blood
It's false, not False. Don't use caps. Same with true.
|
Thanks <3
Also When I Put This
Код:
if(ResetMR == true)//<--- Line 988
{
//
}
I Get...
Код:
C:\Users\Ellie\Desktop\Server\gamemodes\Game.pwn(988) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Any Ideas?
Ellie
Re: Making A Server Variable? -
[MWR]Blood - 25.10.2011
or
instead of just
Re: Making A Server Variable? -
Ely - 25.10.2011
Quote:
Originally Posted by [MWR]Blood
|
Thankyou Your my hero
Ellie