Raised This Month: $ Target: $400
 0% 

Looping Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 06-26-2010 , 17:18   Looping Help
Reply With Quote #1

Heres my code when i attempted to loop a players name from one funtion to another

PHP Code:
public cmdGames(id)
{
    new 
iMenu menu_create("\yLastRequest:^n\rby Nibbles/Shuttle_Wave""Games_Handler")

    
menu_additem(iMenu"\wBig Games""1"0);
    
menu_additem(iMenu"\wSmall""2"0);
    
    
menu_setprop(iMenuMPROP_EXITMEXIT_ALL);
    
menu_display(idiMenu0);
    
    new 
szName[32];
    
get_user_name(idszName31);
    
    
ChoosingG true;
    
    
TaskLoopNameChoosing(szName[id])
    
}    

public 
TaskLoopNameChoosing(szName)
{
    if(
ChoosingG)
    {
        
client_printc(0"%s !g%s!n Is Choosing a !gGame!n"PREFIXszName);
        
        
set_hudmessage(
            .
red 0,
            .
green 100,
            .
blue 255,
            .
= -1.0,
            .
0.45,
            .
holdtime 1.0,
            .
effects 1,
            .
channel = -1
            
);
            
        
show_hudmessage(0"%s Is Choosing a Game"szName);
        
        
set_task(1.0"TaskLoopNameChoosing"szName);
    }

Wat am i doing rong?


Cheers
Shuttle_Wave
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
 


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 14:45.


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