Raised This Month: $ Target: $400
 0% 

a fix for runemod...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 06-04-2006 , 10:10   a fix for runemod...
Reply With Quote #1

Code:
/2006 - 09:04:57: Invalid player id 0
09:06:26 L 06/04/2006 - 09:04:57: [AMXX] Displaying debug trace (plugin "runemod_base.amxx")
09:06:26 L 06/04/2006 - 09:04:57: [AMXX] Run time error 10: native error (native "get_user_info")
09:06:26 L 06/04/2006 - 09:04:57: [AMXX]    [0] runemod_base.sma::CmdGenRuneList (line 2095)
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-04-2006 , 14:39  
Reply With Quote #2

Why didnt you post this in the plugins thread?

Here's a fix maybe..

Code:
public CmdGenRuneList(id) { if(!is_user_connected(id)) return PLUGIN_HANDLED //checks if user is valid..     if(!(get_user_flags(id) & ADMIN_RCON)) return PLUGIN_HANDLED             new FileName[128],Lang[3],len     get_localinfo("amxx_basedir",FileName,127)     get_user_info(id,"lang",Lang,2)         format(FileName,127,"%s/runelist_%s.htm",FileName,Lang)     if(file_exists(FileName)) delete_file(FileName)         len = format(gs_MOTDMessage,1535,"<html> <body bgcolor=^"#000000^" text=^"#FFFFFF^"> </body>Runemod help ")     for(new i=1;i<=g_NumberOfRunes;i++)     {         if(g_RuneFlags[i] & API_PICKUPANDFORGET)         {             if(g_RuneFlags[i] & API_USELANGSYSTEM)                 len += format(gs_MOTDMessage[len],1535 - len,"%d)%L ",i,id,gs_RuneName[i])              else                 len += format(gs_MOTDMessage[len],1535 - len,"%d)%s ",i,gs_RuneName[i])         }         else         {             new Color[12]                                       RGBtoHex(g_RuneColor[i][0])             format(Color,11,"%s",gs_Test)             RGBtoHex(g_RuneColor[i][1])             format(Color,11,"%s%s",Color,gs_Test)             RGBtoHex(g_RuneColor[i][2])             format(Color,11,"%s%s",Color,gs_Test)                                 if(g_RuneFlags[i] & API_USELANGSYSTEM)                 len += format(gs_MOTDMessage[len],1535 - len,"%d)<font color=^"#%s^">%L</font> - %L ",i,Color,id,gs_RuneName[i],id,gs_RuneDesc[i])              else                 len += format(gs_MOTDMessage[len],1535 - len,"%d)<font color=^"#%s^">%s</font> - %s ",i,Color,gs_RuneName[i],gs_RuneDesc[i])            }         write_file(FileName,gs_MOTDMessage)         len = 0         setc(gs_MOTDMessage,1535,0)     }     len += format(gs_MOTDMessage[len],1535 - len,"</html>")     write_file(FileName,gs_MOTDMessage)         console_print(id,"%L",LANG_PLAYER,"BaseGenHtmlFile",FileName)     return PLUGIN_HANDLED }
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 06-04-2006 , 14:42  
Reply With Quote #3

Why didnt I?

Because He no longer supports it.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 06-04-2006 , 15:17  
Reply With Quote #4

OK that worked, but now I have differenct problem that I can't seem to fix..

The timer in this one is all messed up for cooldown.
Attached Files
File Type: sma Get Plugin or Get Source (runemod_unlimitedammo.sma - 556 views - 5.5 KB)
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-04-2006 , 15:59  
Reply With Quote #5

You can try replacing all the set_task for colldown with this
Code:
#define TASKID_COOLDOWN 2492             if(!task_exists(TASKID_COOLDOWN+id)) set_task(COOLDOWNTIME, "Task_EndCoolDown", TASKID_COOLDOWN+id)
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 06-04-2006 , 20:55  
Reply With Quote #6

Didnt work...


Displayed 20, but it never counted down.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Werewolf
Senior Member
Join Date: Jan 2006
Location: Sweden
Old 06-06-2006 , 08:19  
Reply With Quote #7

Code:
set_task()
Use that?
__________________
~~~~~Hawk~~~~~
Werewolf is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 06-06-2006 , 11:10  
Reply With Quote #8

Cheap suit said that already.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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:32.


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