AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error in a small plugin (https://forums.alliedmods.net/showthread.php?t=9531)

Revelation 01-22-2005 07:41

Error in a small plugin
 
ok ok, update, I sorted the problems with compiling now I have a problem when running it in game.
Code:
public cmd_listrates(id,level,cid) {     if (!cmd_access(id, level, cid, 1))         return PLUGIN_HANDLED     new sPlayers[32]     new iPlayerCount     new i     new uid     /* get_players(sPlayers, iPlayerCount, "c") */     client_print(id,print_console,"Player Name | rate | cl_updaterate")     for (i=0; i<=iPlayerCount; i++)     {         uid = sPlayers[i]         get_user_info(uid,"name",sName,31)         get_user_info(uid,"rate",sRate,7)         get_user_info(uid,"cl_updaterate",sUpdaterate,7)         sLong=""         add(sLong,255,sName)         add(sLong,255," | ")         add(sLong,255,sRate)         add(sLong,255," | ")         add(sLong,255,sUpdaterate)         client_print(id,print_console,sLong)     }     return PLUGIN_HANDLED }

the putput i get in the console is:
Code:

amx_listrates
Player Name | rate | cl_updaterateUnknown command: amx_listrates
Type 'amx_help' in the console to see available commands


Johnny got his gun 01-22-2005 08:35

Quote:

get_user_info(uid,"cl_updaterare",sUpdaterate ,7)

Revelation 01-22-2005 09:12

thanks johnny got his gun, i miss those things :roll:


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

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