Raised This Month: $ Target: $400
 0% 

arguments - whats wrong ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MC-Olivenoel
Member
Join Date: Oct 2004
Old 10-20-2004 , 08:27  
Reply With Quote #5

ok i make new post ;) find some new way ... much easyr


Code:
#include <amxmod> #include <amxmisc> #define textlength 50 #pragma tabsize 0 public plugin_init() { register_plugin("test","073","MC-Olivenoel") register_clcmd("make_test","maketest",0,"make the test") } public maketest(id) { new StringList[9][] = {"0","1","10","200","test0", "test1", "test2", "test10", "test200"} new varil[textlength+1] read_argv(1,varil,textlength) if (equali(StringList[0], varil)){ //numvar is 0     client_cmd(id,"say numvar is 0") return PLUGIN_HANDLED } if (equali(StringList[1], varil)){ //numvar is 1     client_cmd(id,"say numvar is 1") return PLUGIN_HANDLED } if (equali(StringList[2], varil)){ //numvar is 10     client_cmd(id,"say numvar is 10") return PLUGIN_HANDLED } if (equali(StringList[3], varil)){ //numvar is 200     client_cmd(id,"say numvar is 200") return PLUGIN_HANDLED } client_cmd(id,"say numvar is not 0,1,10 or 200")       return PLUGIN_HANDLED }

0 ERRORS
ok i will test it in the evening of it works in HL ;)

some litle thing ...
Code:
#pragma tabsize 0
whats this ??

cucu
MC-Olivenoel is offline
 



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 17:11.


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