Making A Server Variable?
#1

How Would I Make One? Like A Bool Thanks

Ellie
Reply
#2

Anybody? I Reallly Need Something Like

new ResetMR[False];

ResetMR = True;
Reply
#3

https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables
Reply
#4

Quote:
Originally Posted by =WoR=Varth
Посмотреть сообщение
Could you give me a example of what i want pleease? im new sorry

Ellie
Reply
#5

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.
Reply
#6

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

Код:
 ResetMR = True;
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.
Reply
#7

It's false, not False. Don't use caps. Same with true.
Reply
#8

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
Reply
#9

pawn Код:
if(ResetMR == 1)
or
pawn Код:
new bool:ResetMR;
instead of just
pawn Код:
new ResetMR;
Reply
#10

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
pawn Код:
if(ResetMR == 1)
or
pawn Код:
new bool:ResetMR;
instead of just
pawn Код:
new ResetMR;
Thankyou Your my hero

Ellie
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)