A small glitch in this cmd
#6

I am not sure if it is best idea but try:
PHP код:
CMD:viplevel1(playeridparams[])
{
    new 
query[80];
    new
        
ID,
        
output[800];
    
mysql_format(mysqlquerysizeof(query), "SELECT user FROM players WHERE level = 1");
    new 
Cache:result mysql_query(mysqlquery);
    new 
rowsfields;
    
cache_get_data(rowsfieldsmysql);
    while(
rows != 0)
    {
        new
            
username[24];
        
rows --;
        
cache_get_field_content(ID"user",usernamemysql24);
ID ++;
        
format(outputsizeof(output), "%s"ccwhite"%d. %s\n"outputIDusername);
        
ShowPlayerDialog(playerid212DIALOG_STYLE_MSGBOX"Level 1 Admins"output"OK""Cancel");}
    else {
        
ShowPlayerDialog(playerid212DIALOG_STYLE_MSGBOX"Level 1 Admins""No vip of this level.""OK""Cancel");}
    
cache_delete(result);
    return 
1;

Reply


Messages In This Thread
A small glitch in this cmd - by Bondage - 18.01.2015, 16:23
Re: A small glitch in this cmd - by Bondage - 19.01.2015, 12:34
Re: A small glitch in this cmd - by CalvinC - 19.01.2015, 12:44
Re: A small glitch in this cmd - by Bondage - 19.01.2015, 12:49
Re: A small glitch in this cmd - by Bondage - 19.01.2015, 18:27
Re: A small glitch in this cmd - by Matess - 19.01.2015, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)