Command not working.
#5

PHP код:
CMD:factions(playeridparams[])
{
new 
string[128], idx;
while (
idx sizeof(FacInfo))
{
if(!
IsPlayerLoggedIn(playerid)) return SendClientMessage(playeridCOLOR_GREY"You need to login first before using any command.");
       {
        
format(stringsizeof(string), "Los Santos Police Department | Leader: %s | Members: %d",FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
        
format(stringsizeof(string), "San Andreas Government | Leader: %s | Members: %d"FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
        
format(stringsizeof(string), "The Hitman Agency | Leader: %s | Members: %d"FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
        
format(stringsizeof(string), "San Andreas News | Leader: %s | Members: %d"FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
        
format(stringsizeof(string), "Los Santos Fire and Medic Department | Leader: %s | Members: %d"FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
        
format(stringsizeof(string), "Federal Bureau of Investigation | Leader: %s | Members: %d"FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
        
SendClientMessage(playeridCOLOR_WHITEstring);
    }
}
    return 
1;

or

PHP код:
CMD:factions(playeridparams[])
{
new 
string[128];
if(!
IsPlayerLoggedIn(playerid)) return SendClientMessage(playeridCOLOR_GREY"You need to login first before using any command.");
       {
        
format(stringsizeof(string), "Los Santos Police Department | Leader: %s | Members: %d",FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
        
format(stringsizeof(string), "San Andreas Government | Leader: %s | Members: %d"FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
        
format(stringsizeof(string), "The Hitman Agency | Leader: %s | Members: %d"FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
        
format(stringsizeof(string), "San Andreas News | Leader: %s | Members: %d"FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
        
format(stringsizeof(string), "Los Santos Fire and Medic Department | Leader: %s | Members: %d"FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
        
format(stringsizeof(string), "Federal Bureau of Investigation | Leader: %s | Members: %d"FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
        
SendClientMessage(playeridCOLOR_WHITEstring);
    }
    return 
1;

Reply


Messages In This Thread
Command not working. - by Laure - 24.11.2012, 07:16
Re: Command not working. - by Glad2BeHere - 24.11.2012, 07:23
Re: Command not working. - by Laure - 24.11.2012, 07:25
Re: Command not working. - by Faisal_khan - 24.11.2012, 07:30
Respuesta: Command not working. - by Parka - 24.11.2012, 07:45
Re: Command not working. - by Laure - 24.11.2012, 07:47
Re: Command not working. - by Laure - 24.11.2012, 08:09
Re: Command not working. - by Glad2BeHere - 24.11.2012, 08:13
Re: Command not working. - by Laure - 24.11.2012, 08:14
Re: Command not working. - by Glad2BeHere - 24.11.2012, 08:24

Forum Jump:


Users browsing this thread: 1 Guest(s)