Raised This Month: $ Target: $400
 0% 

Looping


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 06-26-2010 , 03:22   Looping
Reply With Quote #1

How would i loop a players name from 1 function to another? but u please give me example
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-26-2010 , 03:32   Re: Looping
Reply With Quote #2

You could store it in a global variable.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-26-2010 , 06:10   Re: Looping
Reply With Quote #3

Or just like this :

PHP Code:
public urfunction(id)
{
    new 
name[32]
    
get_user_name(idname31)
    
    
printname(name)
}

public 
printname(name[])
{
    
client_print(0print_chat"%s"name)

__________________
I am out of order!

Last edited by grimvh2; 06-26-2010 at 06:39.
grimvh2 is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 06-26-2010 , 06:32   Re: Looping
Reply With Quote #4

Quote:
Originally Posted by grimvh2 View Post
Or just like this :

PHP Code:
public function(id)
{
    new 
name[32]
    
get_user_name(idname31)
 
    
printname(name)
}
 
public 
printname(name[])
{
    
client_print(0print_chat"%s"name)

You can't use it ?

Code:
public function(id) {     new name[32]     get_user_name(id, name, 31)       client_print(0, print_chat, "%s", name) }
__________________
You can do anything you set your mind to, man.

Devil259 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-26-2010 , 06:39   Re: Looping
Reply With Quote #5

Devil, m just giving an example. I don't know what he really wants to do.
__________________
I am out of order!
grimvh2 is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 06-26-2010 , 06:42   Re: Looping
Reply With Quote #6

Ok...
__________________
You can do anything you set your mind to, man.

Devil259 is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 06-26-2010 , 07:32   Re: Looping
Reply With Quote #7

Ok Thanks.
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave 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 14:46.


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