AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set playername to db stored name. (https://forums.alliedmods.net/showthread.php?t=61681)

Exceed 10-07-2007 06:52

set playername to db stored name.
 
Hey guys, i am pretty new to small and need a little help and i really hope you can help me.

I got a small plugin wich only allows players registred in my db to play on my server and the signup is done by entering this site www.keep-gaming.com.

I want my server to automaticly set the username to the stored in my db when the user join and then disallow them to change it.

So my username will be stored_db_name + [Level] (ex. Exceed [Level #5])

thanks for your help.
And sorry for my english

Exceed 10-07-2007 12:58

Re: set playername to db stored name.
 
name[id] = get_user_name(id,name,31)
name2[id] = "%s [Level #%s]", userName, userLevel
if (name[id] != name2[id])
{
client_cmd(id , "name ^"%s [Level #%s]^"", userName,userLevel)
}

but when i run it i get theese errors.

/home/groups/amxmodx/tmp3/php3EXQuU.sma(167) : error 006: must be assigned to an array
/home/groups/amxmodx/tmp3/php3EXQuU.sma(167 -- 168) : warning 215: expression has no effect


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

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