AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] About ArrayGetString (https://forums.alliedmods.net/showthread.php?t=140750)

#8 SickneSS 10-16-2010 08:54

[Solved] About ArrayGetString
 
I have a doubt with this...so...I need to know how to use them...I want to make something like...

Code:
new Array[33]; /* A Function */ new name[32]; get_user_name(id, name, charsmax(name)); ArrayGetString(Array,??,name,charsmax(name)); /* So I need to put the name to Array[id] */

Some help?:)

hleV 10-16-2010 09:15

Re: About ArrayGetString
 
PHP Code:

new Array[33][32];
 
/* A Function */
new name[32];
get_user_name(idnamecharsmax(name));
 
copy(Array[id], 31name);
 
/* Array[id] now contains name */ 


#8 SickneSS 10-16-2010 11:10

Re: About ArrayGetString
 
Quote:

Originally Posted by hleV (Post 1326280)
PHP Code:

new Array[33][32];
 
/* A Function */
new name[32];
get_user_name(idnamecharsmax(name));
 
copy(Array[id], 31name);
 
/* Array[id] now contains name */ 


Haha,I dind't tried that ^^ ..Thanks^^


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

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