Couple of questions pertaining to small
I have a couple of questions pertaining to small, or at least the implementation of small for amx x.
1. looping? for///while, and how? 2. if statement, how? 3. is it possible to write a config file? 4. is it possible to get a steamid? |
1
Code:
Code:
2 Code:
to avoid using many IF/ELSE switches u can use a SWITCH/CASE Code:
3. Code:
4 Code:
|
Join any server and type status in console You'll see your steam id
|
Quote:
|
Thanks for tellin me.
anybody wanna clear up file io, that would be great, mmmmk? edit: oh, and you have a code issue with your while loop. That beast would go forever should be aa+=1 |
Moooooved Up
|
cases are possible as well, if you don't want to do multiple if statements
|
Moooved Up
|
AssKicR, you are teh shi....
thanks man, you rock |
I was just about to edit my post for that, though you forgot to include an example of a multiple line case statement :P
Code:
|
yeah, thanks for tryin to clear that up with the multiple line case statement, but it doesn't overly matter for me at least.
I know a pile of languages, pickin up small seems like a piece of cake. I just needed to see a couple examples of syntax. |
the
Quote:
|
the comment wasn't for you AssKicR, it was for mongoose, i was trying to say i already understand
|
ye i figured that, but i used the opertunity to shoot out some more facts :D
|
yeah ;) I got that, lol, small is a simple scripting language to learn, considering my knowledge lies majoritively in C++, VB, and BASIC, I picked up small pretty quickly.
I think asskicr's trying to avoid his head exploding by retaining too much info...gives you a headache sometimes, lol, just letting it seep out |
Quote:
|
This is a pretty good starting point for noobies. It should really be stickied, no?
|
dunno :? , not my call anyways
|
well i assumed that it wasn't...but perhaps a new post should be made by a mod with these simple tips and then stickied
|
There will prolly be something like em in the Scripting Tutorial that gets released with "Amxx 0.20"
|
maybe 8)
|
| All times are GMT -4. The time now is 22:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.