AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   variabls (https://forums.alliedmods.net/showthread.php?t=11822)

stigma 03-29-2005 07:21

variabls
 
If you want to save a clients victims. Are it normally saved in a variable then?

And to make a new variable isent it just like this:

Code:
var killer = 1

Twilight Suzuka 03-29-2005 09:55

This is NOT JS. This is SMALL.

we have four types of variables:

Ints
Code:
 new var = 1;

Floats
Code:
 new Float:var = 1.0;

Bools
Code:
 new Bool:var = true;

Strings/arrays
Code:
 new string[50]
Code:
 new Float:string[50]
Code:
 new Bool:string[50]
etc

I have no idea what you meant by the first part.

LynX 03-29-2005 10:40

He wants to to get access to user frags, and the names of victims client killed...

stigma 03-29-2005 11:09

LynX: No :)

Okay Twilight Suzuka, well cant you tell what the things does? - That bool and floats - And is it posible to name a var?[/quote]

amxxsean 03-29-2005 12:14

Can you do like
Code:
new money = m
and have m in an argument like
Code:
new money = m cs_set_user_money(mid,m,0)
I have to warn you, if you haven't noticed already. I have no idea what I'm talking about ;-). How would you make it so "m" is a variable set by the admin in a command. Like amx_givecash "user" "amount".

Twilight Suzuka 03-29-2005 12:55

I'm definitely not explaining variables when there are guides out there that do it already.

amxxsean 03-29-2005 12:59

Ok I'll take a crack at the tutorial by Bailopan again :wink:


All times are GMT -4. The time now is 09:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.