Raised This Month: $ Target: $400
 0% 

Menu display


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-14-2011 , 08:07   Menu display
Reply With Quote #1

Look I have public Igra and there I have menu and some function... How with
PHP Code:
ExecuteHamB(Ham_CS_RoundRespawnPlayer
to get in every round to loop public Igra
__________________

Last edited by Artifact; 06-14-2011 at 08:11.
Artifact is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 06-14-2011 , 10:32   Re: Menu display
Reply With Quote #2

Code:
public Ham_CS_RoundRespawn(id) { Igra(id) }

to call that every roundspawn... if thats what you asked for :S
Erox902 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-14-2011 , 11:34   Re: Menu display
Reply With Quote #3

Do you want to call the Igra() function for player every time the player spawns?

Quote:
Originally Posted by Erox902 View Post
Code:
public Ham_CS_RoundRespawn(id) { Igra(id) }

to call that every roundspawn... if thats what you asked for :S
Your code makes no sense.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 06-14-2011 , 18:09   Re: Menu display
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
Do you want to call the Igra() function for player every time the player spawns?



Your code makes no sense.
Isn't Ham_CS_RoundRespawn() just like ham_spawn?... if not then I can understand, but would'nt it be just like that if they are?
Pls correct me if i'm wrong cuz then i have a lot to fix in my plugins which always seems to work :s
Erox902 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-14-2011 , 20:22   Re: Menu display
Reply With Quote #5

Quote:
Originally Posted by Erox902 View Post
Isn't Ham_CS_RoundRespawn() just like ham_spawn?... if not then I can understand, but would'nt it be just like that if they are?
Pls correct me if i'm wrong cuz then i have a lot to fix in my plugins which always seems to work :s
It is, but you cant just name a function that and expect it to be the handler for when a player spawns.
You have to hook it with RegisterHam() and it can't be the exact name of the Ham_* constant or else it will give an error.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 06-15-2011 , 02:54   Re: Menu display
Reply With Quote #6

oh... well thanks for the explaination then
Erox902 is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-15-2011 , 09:06   Re: Menu display
Reply With Quote #7

I have this:
PHP Code:
public Igra(id)
{
    
// My code

And I want to call it every round. How?
__________________
Artifact is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-15-2011 , 14:01   Re: Menu display
Reply With Quote #8

http://forums.alliedmods.net/showthread.php?t=42159

Everybody here should have this thread bookmarked.
__________________
fysiks is online now
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 23:28.


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