Raised This Month: $ Target: $400
 0% 

set playername to db stored name.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exceed
Member
Join Date: Oct 2004
Old 10-07-2007 , 06:52   set playername to db stored name.
Reply With Quote #1

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^ - I JUST CAN'T STOP.
Exceed is offline
Exceed
Member
Join Date: Oct 2004
Old 10-07-2007 , 12:58   Re: set playername to db stored name.
Reply With Quote #2

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 -- 16 : warning 215: expression has no effect
__________________
Exceed^ - I JUST CAN'T STOP.
Exceed is offline
Reply



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 16:08.


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