Raised This Month: $ Target: $400
 0% 

need little help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Smith
New Member
Join Date: Feb 2005
Old 02-09-2005 , 08:36   need little help
Reply With Quote #1

I would like to give someone an admin flag when he press es button in a map. if type this code in a plugin but when sb. pressed it he get the message but don't get the rights i think it's because the %d but i don't know how to use this variables... can someone help me? Thanks

Code:
get_user_name(pTouched,gName,32)

server_cmd("amx_makeadmin %d q",gName)
client_print(pTouched,print_chat,"test"
Smith is offline
More
Member
Join Date: Nov 2004
Location: Internet
Old 02-09-2005 , 08:50  
Reply With Quote #2

gName is a string - %d is an integer.
use %s instead of %d
More is offline
Reply


Thread Tools
Display Modes

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 19:24.


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