Script errors + lines.
#9

Try:

PHP код:
if(strcmp(cmd"/invite"true) == 0)
{
    
tmp strtok(cmdtextidx);
    if(!
strlen(tmp)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /invite [playerid/PartOfName]");
    new 
ftext[20];
    
giveplayerid ReturnUser(tmp);
    if(
PlayerInfo[playerid][pLeader] < 1) return SendClientMessage(playeridCOLOR_GRAD1" You are not authorized to use that command (leaders only) !");
    if(
IsPlayerConnected(giveplayerid) && giveplayerid != INVALID_PLAYER_ID)
    {
        if(
PlayerInfo[giveplayerid][pMember] == && PlayerInfo[giveplayerid][pLeader] == && PlayerInfo[giveplayerid][pFMember] == 255)
        {
            
GetPlayerName(playeridsendernamesizeof(sendername));
            
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
            if(
PlayerInfo[playerid][pLeader] == 1) {ftext "Los Santos Police Department";}
            else if(
PlayerInfo[playerid][pLeader] == 2) {ftext "Federal Bureau of Investigation";}
            else if(
PlayerInfo[playerid][pLeader] == 3) {ftext "Department of Corrections";}
            else if(
PlayerInfo[playerid][pLeader] == 4) {ftext "Los Santos Emergency Medical Services";}
            else if(
PlayerInfo[playerid][pLeader] == 5) {ftext "U.S. Navy Seals";}
            else if(
PlayerInfo[playerid][pLeader] == 6) {ftext "The Government";}
            else if(
PlayerInfo[playerid][pLeader] == 7) {ftext "Secret Service";}
            else if(
PlayerInfo[playerid][pLeader] == {ftext "Hitman Agency";}
            else if(
PlayerInfo[playerid][pLeader] == 9) {ftext "San Andreas News Network";}
            else if(
PlayerInfo[playerid][pLeader] == 10) {ftext "Taxi Cab Company";}
            
format(stringsizeof(string), "You have invited %s to join %s."giveplayerftext);
            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
            
format(stringsizeof(string), "%s has invited you to join %s. Type /accept faction to accept the invitation.",sendernameftext);
            
SendClientMessage(giveplayeridCOLOR_YELLOWstring);
            
FactionOffer[giveplayerid] = playerid;
        }
        else return 
SendClientMessage(playeridCOLOR_GREY"The subjected player is already a member of an official faction.");
    }
    return 
1;

Reply


Messages In This Thread
Script errors + lines. - by City of Santos: Roleplay - 11.07.2011, 18:15
Re: Script errors + lines. - by WoodPecker - 11.07.2011, 18:48
Re: Script errors + lines. - by City of Santos: Roleplay - 11.07.2011, 19:05
Re: Script errors + lines. - by Shadoww5 - 11.07.2011, 19:05
Re: Script errors + lines. - by Toreno - 11.07.2011, 19:07
Re: Script errors + lines. - by City of Santos: Roleplay - 11.07.2011, 19:15
Re: Script errors + lines. - by WoodPecker - 11.07.2011, 19:20
Re: Script errors + lines. - by City of Santos: Roleplay - 11.07.2011, 19:41
Re: Script errors + lines. - by Shadoww5 - 11.07.2011, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)