[AJUDA] comando /infoorg
#1

Galera eu digito o cmd e n acontece nd :S
PHP код:
CMD:infoorg(playerid)
{
    if(
PlayerInfo[playerid][pMembro] >= 1)
    {
        new 
orgstring[128], DIALOG[1500];
         if(
PlayerInfo[playerid][pMembro] > 0)
            return 
org PlayerInfo[playerid][pMembro];
        if(
PlayerInfo[playerid][pLider] > 0)
            return 
org PlayerInfo[playerid][pLider];
        
format(stringsizeof(string), "Lнder: %s"InfoOrg[org][Lider]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Sub-Lнder 555: %s"InfoOrg[org][SubLider555]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Sub-Lнder 444: %s"InfoOrg[org][SubLider444]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Vaga 1: %s"InfoOrg[org][Vaga1]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Vaga 2: %s"InfoOrg[org][Vaga2]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Vaga 3: %s"InfoOrg[org][Vaga3]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Vaga 4: %s"InfoOrg[org][Vaga4]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Vaga 5: %s"InfoOrg[org][Vaga5]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Vaga 6: %s"InfoOrg[org][Vaga6]);
        
strcat(DIALOGstring);
        
format(stringsizeof(string), "Vaga 7: %s"InfoOrg[org][Vaga7]);
        
strcat(DIALOGstring);
        
ShowPlayerDialog(playerid6666DIALOG_STYLE_MSGBOX"Info Organizaзгo"DIALOG"Ok","");
    }
    return 
1;

Reply
#2

pawn Код:
CMD:infoorg(playerid, params[])
{
    if(PlayerInfo[playerid][pMembro] >= 1)
    {
        new org, string[128], DIALOG[1500];
         if(PlayerInfo[playerid][pMembro] > 0)
            return org = PlayerInfo[playerid][pMembro];
        if(PlayerInfo[playerid][pLider] > 0)
            return org = PlayerInfo[playerid][pLider];
        format(string, sizeof(string), "Lнder: %s", InfoOrg[org][Lider]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Sub-Lнder 555: %s", InfoOrg[org][SubLider555]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Sub-Lнder 444: %s", InfoOrg[org][SubLider444]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Vaga 1: %s", InfoOrg[org][Vaga1]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Vaga 2: %s", InfoOrg[org][Vaga2]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Vaga 3: %s", InfoOrg[org][Vaga3]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Vaga 4: %s", InfoOrg[org][Vaga4]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Vaga 5: %s", InfoOrg[org][Vaga5]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Vaga 6: %s", InfoOrg[org][Vaga6]);
        strcat(DIALOG, string);
        format(string, sizeof(string), "Vaga 7: %s", InfoOrg[org][Vaga7]);
        strcat(DIALOG, string);
        ShowPlayerDialog(playerid, 6666, DIALOG_STYLE_MSGBOX, "Info Organizaзгo", DIALOG, "Ok","");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)