Raised This Month: $ Target: $400
 0% 

variabls


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-29-2005 , 07:21   variabls
Reply With Quote #1

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
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-29-2005 , 09:55  
Reply With Quote #2

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.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
LynX
Veteran Member
Join Date: Oct 2004
Old 03-29-2005 , 10:40  
Reply With Quote #3

He wants to to get access to user frags, and the names of victims client killed...
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-29-2005 , 11:09  
Reply With Quote #4

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]
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
amxxsean
Member
Join Date: Feb 2005
Old 03-29-2005 , 12:14  
Reply With Quote #5

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".
__________________
DID SOMEBODY DIAL TEH AWPERAT0RZ?
www.awpz.tk
NOW ACCEPTING MEMBERS!
amxxsean is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-29-2005 , 12:55  
Reply With Quote #6

I'm definitely not explaining variables when there are guides out there that do it already.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
amxxsean
Member
Join Date: Feb 2005
Old 03-29-2005 , 12:59  
Reply With Quote #7

Ok I'll take a crack at the tutorial by Bailopan again
__________________
DID SOMEBODY DIAL TEH AWPERAT0RZ?
www.awpz.tk
NOW ACCEPTING MEMBERS!
amxxsean is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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