Raised This Month: $ Target: $400
 0% 

Error in a small plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Revelation
Junior Member
Join Date: Jan 2005
Old 01-22-2005 , 07:41   Error in a small plugin
Reply With Quote #1

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
Revelation is offline
 



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:15.


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