Raised This Month: $ Target: $400
 0% 

Get info


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-23-2013 , 09:41   Get info
Reply With Quote #1

Can i some how get tempid in my task???
set_task( 10.0, "SawSlay")

Code:
public SawGame ( iPlayer ) 
{ 
new SawMenu = menu_create ( "\r[\ySWE-KUNG\r]\w Saw Menu:^n\rBy SnusMumrikeN", "SawGame_Handle" ) 
new num, players[32], tempid, szTempID [ 10 ], tempname [ 32 ] 
get_players ( players, num, "a" ) 
for ( new i = 0; i < num; i++ ) 
{ 
tempid = players [ i ] 
if ( cs_get_user_team ( tempid ) != CS_TEAM_T ) 
continue 
get_user_name ( tempid, tempname, 31 ) 
num_to_str ( tempid, szTempID, 9 ) 
menu_additem ( SawMenu, tempname, szTempID, 0 ) 
} 
menu_display ( iPlayer, SawMenu ) 
set_task( 10.0, "SawSlay")                           // TASK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
return PLUGIN_HANDLED 
} 
public SawGame_Handle ( iPlayer, menu, item, id ) 
{ 
g_iCurrentGame = GAME_SAW
if ( item == MENU_EXIT ) 
{ 
menu_destroy ( menu ) 
return PLUGIN_HANDLED; 
} 
new data [ 8 ], iName [ 64 ] 
new access, callback 
menu_item_getinfo ( menu, item, access, data,7, iName, 63, callback ) 
new tempid = str_to_num ( data ) 
new tempname [ 32 ]
get_user_name ( tempid, tempname, 31 )
 
 
menu_destroy(menu); 
return PLUGIN_HANDLED; 
}
public SawSlay (id) 
{ 
 
  }
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 01-23-2013 at 09:41.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-23-2013 , 10:07   Re: Get info
Reply With Quote #2

PHP Code:
set_task10.0"SawSlay"tempid)

public 
SawSlay(tempid
__________________
Retired.
Xalus is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-23-2013 , 10:16   Re: Get info
Reply With Quote #3

doesnt work
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 01-23-2013 at 10:48.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-23-2013 , 10:36   Re: Get info
Reply With Quote #4

I give up..

Why you ask help, if your not even doing what we say todo?
__________________
Retired.
Xalus is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-23-2013 , 10:47   Re: Get info
Reply With Quote #5

Quote:
Originally Posted by Xalus View Post
I give up..

Why you ask help, if your not even doing what we say todo?
Solved
sorry Xalus
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-23-2013 , 12:42   Re: Get info
Reply With Quote #6

Np,

I'm happy that you found it by urself!
__________________
Retired.
Xalus is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-23-2013 , 20:45   Re: Get info
Reply With Quote #7

Quote:
Originally Posted by Xalus View Post
Np,

I'm happy that you found it by urself!
Don't worry, your example was correct as an example, you just confused him by using the wrong variable (wrong in his code).
__________________

Last edited by fysiks; 01-23-2013 at 20:45.
fysiks is offline
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 20:40.


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