AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   uc handle and seed? help pls!! (https://forums.alliedmods.net/showthread.php?t=173653)

Pelita Jaya F.C 12-08-2011 12:38

uc handle and seed? help pls!!
 
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)     }

Devil259 12-08-2011 12:48

Re: uc handle and seed? help pls!!
 
Quote:

Originally Posted by Pelita Jaya F.C (Post 1609801)
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.

Pelita Jaya F.C 12-08-2011 12:52

Re: uc handle and seed? help pls!!
 
but it say that uc and seed is the eerorr ?

Devil259 12-08-2011 13:21

Re: uc handle and seed? help pls!!
 
FM_R(id, uc handle, seed)

->

FM_R(id, uchandle, seed)

maybe space is not allowed

Korxu 12-08-2011 13:25

Re: uc handle and seed? help pls!!
 
Remove 'Ham_Spawn' hook and function.

Pelita Jaya F.C 12-08-2011 21:14

Re: uc handle and seed? help pls!!
 
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

Korxu 12-09-2011 09:41

Re: uc handle and seed? help pls!!
 
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.

Pelita Jaya F.C 12-09-2011 10:59

Re: uc handle and seed? help pls!!
 
i don't want to change anything , just want the code to works fine.
please help

Devil259 12-09-2011 11:19

Re: uc handle and seed? help pls!!
 
Quote:

Originally Posted by Pelita Jaya F.C (Post 1610281)
i don't want to change anything

So, don't ask help.

Pelita Jaya F.C 12-09-2011 12:33

Re: uc handle and seed? help pls!!
 
why the fuck you here?
just help me fix the error not showing me the free out door for me


All times are GMT -4. The time now is 12:00.

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