AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   need little help (https://forums.alliedmods.net/showthread.php?t=10135)

Smith 02-09-2005 08:36

need little help
 
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"


More 02-09-2005 08:50

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


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

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