SA-MP Forums Archive
[AJUDA] Socio - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Socio (/showthread.php?tid=290027)



[AJUDA] Socio - Renato_Silva - 13.10.2011

Bom Estou Com Um Problema nos socios tipo Digito /policiamilitar e o nick do socio continua branco Alguem poderia me ajudar ?


pawn Код:
if(strcmp(cmd, "/policiamilitar", true) == 0)
    {
        if(IsPlayerConnected(playeridgf))
        {
            if(PlayerInfo[playerid][pSocigo] >= 1)
            {
                if(PlayerInfo[playerid][pMembro] != 0 || PlayerInfo[playerid][pLider] != 0)
                {
                    PlayerInfo[playerid][pMembro] = 1;
                    PlayerInfo[playerid][pCargo] = 4;
                    SetPlayerSkin(playerid,21);
                    PlayerInfo[playerid][pChar] = 280;
                    SetPlayerSpawn(playerid);
                    new name[MAX_PLAYER_NAME];
                    GetPlayerName(playerid, name, sizeof(name));
                    format(string, 256, "Sуcio: %s Entrou Para Policia Militar.",name);
                    ProxDetector(70.0, playerid, string, COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE);
                }
            }
        }
        return 1;
    }



Re: [AJUDA] Socio - Bruno Pereira - 13.10.2011

PHP код:
if(strcmp(cmd"/policiamilitar"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pSocio] >= 1)
            {
                if(
PlayerInfo[playerid][pMembro] != || PlayerInfo[playerid][pLider] != 0)
                {
                    return 
SendClientMessage(playerid, -1"Vocк jб tem uma organizaзгo, use /pedircontas!");
                }
                else
                {
                    
SetPlayerColor(playerid, -1);//Coloca a cor no lugar de -1!
                    
PlayerInfo[playerid][pMembro] = 1;
                    
PlayerInfo[playerid][pCargo] = 4;
                    
SetPlayerSkin(playerid,280);
                    
PlayerInfo[playerid][pChar] = 280;
                    
SetPlayerSpawn(playerid);
                    new 
name[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridnamesizeof(name));
                    
format(string256"Sуcio: %s Entrou Para Policia Militar.",name);
                    
ProxDetector(70.0playeridstringCOLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE);
                }
            }
        }
        return 
1;
    } 



Re: [AJUDA] Socio - Renato_Silva - 13.10.2011

Obrigado Arrumou O Problema