[Ajuda] Server: UNKNOWN COMMAND
#3

SERVER: UNKNOWN COMMAND nгo tem haver com crash, acontece isso devido nгo returnar 1 ao digitar um comando no chat...

@Topico

Tente dessa maneira e me de resposta

PHP код:
if(strcmp(cmd"/vermaconhas"true) == 0)
{
    new 
localmac 0;
    
JeffStringzao[0] = SOS;
    for(new 
maconhaid=0;maconhaid MAX_MACONHAmaconhaid++)
    {
        if(
MaconhaInfo[maconhaid][PodeUsar] == false && strcmp(MaconhaInfo[maconhaid][Dono], PlayerName(playerid), true)==0)
        {
            
localmac++;
            
LocalizeMaconha[localmac][playerid] = maconhaid;
            if(
MaconhaInfo[maconhaid][Crescida] >= Max_Crescida)
            {
                
format(stringsizeof string"Plantaзгo %d: {00BC00}(Pronta) Gramas: [%d]\n",maconhaid+1,MaconhaInfo[maconhaid][GramasProntas]);
                
strcat(JeffStringzao,string);
            }
            else
            {
                
format(stringsizeof string"Plantaзгo %d: {00BC00}Crescendo:[%d/%d] Gramas:[%d]\n",maconhaid+1MaconhaInfo[maconhaid][Crescida], Max_CrescidaMaconhaInfo[maconhaid][GramasProntas]);
                
strcat(JeffStringzao,string);
            }
        }
    }
    
ShowPlayerDialog(playerid1478DIALOG_STYLE_LIST"Menu maconha"JeffStringzao"Localizar""Sair");
    return 
1;

Reply


Messages In This Thread
Server: UNKNOWN COMMAND - by jefrens - 15.10.2015, 02:08
Re: Server: UNKNOWN COMMAND - by Coringa_Vilao - 15.10.2015, 03:14
Re: Server: UNKNOWN COMMAND - by garotin - 15.10.2015, 03:57
Re: Server: UNKNOWN COMMAND - by Madhrer - 15.10.2015, 04:33
Re: Server: UNKNOWN COMMAND - by jefrens - 15.10.2015, 04:33
Re: Server: UNKNOWN COMMAND - by BobbMarley - 15.10.2015, 04:42
Re: Server: UNKNOWN COMMAND - by jefrens - 15.10.2015, 04:43
Re: Server: UNKNOWN COMMAND - by Madhrer - 15.10.2015, 04:44
Re: Server: UNKNOWN COMMAND - by jefrens - 15.10.2015, 04:51
Re: Server: UNKNOWN COMMAND - by Nixtren - 15.10.2015, 09:57

Forum Jump:


Users browsing this thread: 4 Guest(s)