AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Correct way of doing this.. (https://forums.alliedmods.net/showthread.php?t=21928)

aLpiNe^cLuBz 12-13-2005 23:58

Correct way of doing this..
 
Code:
public handle_say[id]; {     new message[300];     read_args(message,299);     remove_quotes(message);         if(is_user_alive(id) == 0) {         return PLUGIN_CONTINUE;     }     if(equali(message,"/criminalrecord",12));     {         show_criminalrecord(id);     }     return PLUGIN_CONTINUE; }

Is that the correct way of doing a message command?

Twilight Suzuka 12-14-2005 00:55

Basically, yes.

XxAvalanchexX 12-14-2005 01:13

/criminalrecord is more than 12 characters.

VEN 12-14-2005 03:08

Code:
public handle_say[id];
Replace "[id]" with "(id)".

aLpiNe^cLuBz 12-14-2005 19:16

@ Avalanhce - Ah..whoops. Yea, it has 15 characters. Thanks Avalanche.

@ Ven. Ah, got it. Thanks.


All times are GMT -4. The time now is 16:10.

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