Raised This Month: $ Target: $400
 0% 

uc handle and seed? help pls!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pelita Jaya F.C
Member
Join Date: Oct 2011
Location: Bangkok
Old 12-08-2011 , 12:38   uc handle and seed? help pls!!
Reply With Quote #1

i tried this
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fakemeta> #include <hamsandwich> #include <fun> #define PLUGIN "Press R to run fast" #define VERSION "0.1" #define AUTHOR "pelita haya f.c" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_forward(FM_CmdStart, "FM_R")         RegisterHam(Ham_Spawn, "player", "Haha") } public Haha(id) {     if ( is_user_admin(id) )     {         FM_R(id)     } } public FM_R(id, uc handle, seed) {     if(!is_user_alive(id))     return;         static iButton; iButton = pev(id, pev_button)     static iOldButton; iOldButton = pev(id, pev_oldbuttons)         if ( is_user_alive(id) )     {         if( ( iButton & IN_USE ) && !( iOldButton & IN_USE ) )         {             CmdRun(id)         }     } } public CmdRun(id) {     if ( is_user_alive(id) )     {         set_user_maxspeed(id, 300)     } }

and it give me error in

Code:
    {         FM_R(id)     }
__________________


My Plugins:
Power M4A1
Pelita Jaya F.C is offline
Old 12-08-2011, 12:42
Pelita Jaya F.C
This message has been deleted by ConnorMcLeod. Reason: bump
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-08-2011 , 12:48   Re: uc handle and seed? help pls!!
Reply With Quote #3

Quote:
Originally Posted by Pelita Jaya F.C View Post
sorry for bumping for 2 weeks
but i think it had nothing wrong in the code?
and it should i put like
Code:
    {         FM_R(id, uc handle, seed)     }

???

someone

bump
Try to test by yourself.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Pelita Jaya F.C
Member
Join Date: Oct 2011
Location: Bangkok
Old 12-08-2011 , 12:52   Re: uc handle and seed? help pls!!
Reply With Quote #4

but it say that uc and seed is the eerorr ?
__________________


My Plugins:
Power M4A1
Pelita Jaya F.C is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-08-2011 , 13:21   Re: uc handle and seed? help pls!!
Reply With Quote #5

FM_R(id, uc handle, seed)

->

FM_R(id, uchandle, seed)

maybe space is not allowed
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 12-08-2011 , 13:25   Re: uc handle and seed? help pls!!
Reply With Quote #6

Remove 'Ham_Spawn' hook and function.
Korxu is offline
Pelita Jaya F.C
Member
Join Date: Oct 2011
Location: Bangkok
Old 12-08-2011 , 21:14   Re: uc handle and seed? help pls!!
Reply With Quote #7

i don't want like that , i don't to change my code and make it stay like that , i just want to fix the error
__________________


My Plugins:
Power M4A1
Pelita Jaya F.C is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 12-09-2011 , 09:41   Re: uc handle and seed? help pls!!
Reply With Quote #8

The forward 'FM_CmdStart' is executed a lot of times, you don't need to call it when a user respawn.... Do the admin check inside the forward.
Korxu is offline
Pelita Jaya F.C
Member
Join Date: Oct 2011
Location: Bangkok
Old 12-09-2011 , 10:59   Re: uc handle and seed? help pls!!
Reply With Quote #9

i don't want to change anything , just want the code to works fine.
please help
__________________


My Plugins:
Power M4A1
Pelita Jaya F.C is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-09-2011 , 11:19   Re: uc handle and seed? help pls!!
Reply With Quote #10

Quote:
Originally Posted by Pelita Jaya F.C View Post
i don't want to change anything
So, don't ask help.
__________________
You can do anything you set your mind to, man.

Devil259 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 12:00.


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