Raised This Month: $ Target: $400
 0% 

stock print


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-08-2020 , 10:36   Re: stock print
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
1. You defined the function with 2 arguments, but you're using 4.

2. Why do you need an "id" parameter in the function if it's going to send the message to a group of players?

3. You're missing "vformat".

4. You probably don't need the "stock" tag.
like this?
PHP Code:
print_admin(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    if(
id)
        
players[0] = id;
    else
        
get_players(playerscount"ch");
    
    for (new 
0counti++)
    {
        
players[i]
        if(
is_user_admin(x))
        
client_print_color(x0msg)
    }

__________________

Last edited by Sanjay Singh; 01-08-2020 at 10:41.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
 



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 02:42.


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