Код:
else if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
{
if IsPlayerInVehicle(playerid, 515)
this is line 30255 {
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** %s(CB Radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** %s(CB Radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(CB Radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(CB Radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(CB Radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(CB Radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(CB Radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(CB Radio): %s **", sendername, result); }
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not in the transport !");
return 1;
}
{
format(string, sizeof(string), "** %s(CB Radio): %s, over. **", sendername, result);
}
SendRadioMessage(17, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
ok so it compiles but even if i am in the truck it jumps to the line that says i am not in a truck
It seems like your whole code is messed up, how did you open brackets without an if or anything else.
Looks like another classic case of a vehicleid/modelid mix-up. Please learn the difference between the two.
i am trying but its harder than coding lua its some what smiler but not the same
Thank You Very Much MadeMan I Put Credits To You Be Side That Line In My Script