a Problem !
#3

Why para1? Why you didn't use playerid ? + you haven't defined string.

pawn Код:
if(dialogid == 1122)
{
    if(!response)   return SendClientMessage(playerid, COLOR_WHITE,"{37F906}INFO:{FFFFFF}Ja Odbivte ponudata za Clenstvo!");
    else
    {
        new ftext[20];
        switch(listitem)
        {
            case 1:
            {
                if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ftext = "LS PD"; ChosenSkin[playerid] = 265; SetPlayerSkin(playerid, 265); }
                else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ftext = "FBI"; ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); }
                else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; ftext = "Hitna Pomoc"; ChosenSkin[playerid] = 274; SetPlayerSkin(playerid, 274); }
                else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; ftext = "The Russian Mafia"; ChosenSkin[playerid] = 126; SetPlayerSkin(playerid, 126); }
                else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[playerid][pTeam] = 6; gTeam[playerid] = 6; ftext = "The Escobar Cartel"; ChosenSkin[playerid] = 98; SetPlayerSkin(playerid, 98); }
                else if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; ftext = "Vlada"; ChosenSkin[playerid] = 61; SetPlayerSkin(playerid, 61); }
                else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; ftext = "[SE:RT] Novinari"; ChosenSkin[playerid] = 17; SetPlayerSkin(playerid, 17); }
                else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; ftext = "Taxi Company"; ChosenSkin[playerid] = 182; SetPlayerSkin(playerid, 182); }
                else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; ftext = "Parking Servis"; ChosenSkin[playerid] = 8; SetPlayerSkin(playerid, 8); }
                else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[playerid][pTeam] = 15; gTeam[playerid] = 15; ftext = "Los Santos Vagos"; ChosenSkin[playerid] = 108; SetPlayerSkin(playerid, 108); }
                else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; ftext = "Grove Street Family"; ChosenSkin[playerid] = 106; SetPlayerSkin(playerid, 106); }
                else
                {
                    return 1;
                }
                //GetPlayerNameEx(playerid, giveplayer, sizeof(giveplayer));
                //GetPlayerName(playerid, sendername, sizeof(sendername));
               
                PlayerInfo[playerid][pMember] = PlayerInfo[playerid][pLeader];
                PlayerInfo[playerid][pRank] = 1;
               
                format(string, sizeof(string), "[INFO] {FFFFFF}Pozvani ste u %s, pozvao vas je Lider %s", ftext, sendername);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            }
        }
    }
}
Reply


Messages In This Thread
a Problem ! - by 3RoR - 22.04.2012, 09:15
Re: a Problem ! - by [MG]Dimi - 22.04.2012, 10:14
Re: a Problem ! - by s3rious - 22.04.2012, 10:28
Re: a Problem ! - by IceCube! - 22.04.2012, 10:34
Re: a Problem ! - by s3rious - 22.04.2012, 10:35
Re: a Problem ! - by 3RoR - 22.04.2012, 13:02
Re: a Problem ! - by 3RoR - 22.04.2012, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)