02.09.2010, 08:10
The command for "/accept invite"
The error
The line of the error
Help me please :/
pawn Код:
else if(strcmp(x_job,"invite",true) == 0)
{
if(PlayerInfo[playerid][InviteOffer] < SCRIPT_PLAYERS)
{
new ftext[128];
if(PlayerInfo[playerid][InviteOffer][pMember] == 1 && PlayerInfo[playerid][InviteOffer][pRank] >= 15) { ftext = "Police Force"; PlayerInfo[playerid][pModel] = 71; }
else if(PlayerInfo[playerid][InviteOffer][pMember] == 2) { PlayerInfo[playerid][pModel] = 286; }
else if(PlayerInfo[playerid][InviteOffer][pMember] == 3) { PlayerInfo[playerid][pModel] = 276; }
else if(PlayerInfo[playerid][InviteOffer][pMember] == 4) { PlayerInfo[playerid][pModel] = 276; }
else if(PlayerInfo[playerid][InviteOffer][pMember] == 5) { PlayerInfo[playerid][pModel] = 276; }
else if(PlayerInfo[playerid][InviteOffer][pMember] == 6) { PlayerInfo[playerid][pModel] = 276; }
else if(PlayerInfo[playerid][InviteOffer][pMember] == 7) { PlayerInfo[playerid][pModel] = 276; }
else if(PlayerInfo[playerid][InviteOffer][pMember] >= 8) { PlayerInfo[playerid][pModel] = FamilyInfo[PlayerInfo[InviteOffer][playerid]][pMember]][FamilySkin1]; }
SendClientMessage(playerid, COLOR_WHITE, "You have accepted to join the faction, welcome!");
PlayerInfo[playerid][pMember] = PlayerInfo[InviteOffer][playerid]][pMember];
SetPlayerSkinEx(playerid, PlayerInfo[playerid][InviteOffer][pModel]);
PlayerInfo[playerid][pRank] = 1;
PlayerInfo[playerid][InviteOffer] = SCRIPT_PLAYERS;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " No-one offerd you an invite !");
return 1;
}
}
Код:
(28392) : error 001: expected token: ")", but found "["
pawn Код:
if(PlayerInfo[playerid][InviteOffer][pMember] == 1 && PlayerInfo[playerid][InviteOffer][pRank] >= 15) { ftext = "Police Force"; PlayerInfo[playerid][pModel] = 71; }