17.12.2012, 13:55
(
Последний раз редактировалось Kethrios; 18.12.2012 в 07:20.
)
Hi everybody !
I've a police command, which is "/p record PLAYERID" to see what contain the record of a specific player.
The thing is that, when I coded it, I missed something at the very beginning I guess.
You can use it only in front of the police computer, or in a police car.
pawn Code:
For me everything is alright. But still... When a policeman use it in a cop car it says that he's not in front of a police computer or in a cop car.
I have no errors, no warnings, but still, it's buggued o_o
I've a police command, which is "/p record PLAYERID" to see what contain the record of a specific player.
The thing is that, when I coded it, I missed something at the very beginning I guess.
You can use it only in front of the police computer, or in a police car.
pawn Code:
pawn Код:
else if(strcmp(subcmd, "records", true) == 0 || strcmp(subcmd, "computer", true) == 0)
{
if(PlayerInfo[playerid][pMember] == FACT_COPS_LS && !PlayerToPoint(5, playerid,1550.79,-1663.25,-9.19) || IsPlayerInAnyVehicle(playerid) && !IsACopCar(GetPlayerVehicleID(playerid)))
{SendClientMessage(playerid, COLOR_COPS, "{FF6600}[Police]{11BB00} You're not in front of the police computer or you're not in a police car."); return 1;}
tmp=strtok(cmdtext,idx);
For me everything is alright. But still... When a policeman use it in a cop car it says that he's not in front of a police computer or in a cop car.
I have no errors, no warnings, but still, it's buggued o_o