AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Mysql Set Model (https://forums.alliedmods.net/showthread.php?t=140898)

Stylaa 10-17-2010 11:59

Mysql Set Model
 
im getting the modelname out of a databas ( mysql )

What is wrong in this Part ?

PHP Code:

new tmp SQL_ReadResult(Query3)

    new 
tmp2 tmp
    
    cs_set_user_model
(idtmp2 

And what is false here
/ How i use Variables in cs_set_user_model?

Thanks

Sylwester 10-17-2010 14:13

Re: Mysql Set Model
 
Modelname is a string, you need to use array to store it.
PHP Code:

new tmp[32]
SQL_ReadResult(Query3tmp31)

new 
tmp2[32]
copy(tmp231tmp)   //I don't know why do you copy it to another variable, but this is how you do it with arrays
cs_set_user_model(idtmp2 



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

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