Another bug
#1

Fixed the 1st one.

My other question: When someone has robbed the casino. The checkpoint goes away (that has to be this way) but when someone enters a vehicle, and leaves it the checkpoint shows up again how to fix this?
Reply
#2

pawn Код:
public OnPlayerEnterCheckpoint()
{
  if(IsPlayerInVehicle(playerid))
  {
    SendClientMessage(playerid, 0xAAAAAAAA, "You need to be on foot to rob!");
    return 1;
  }
..your robbing code etc
}
Reply
#3

getting a warning
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
  if(IsPlayerInVehicle(playerid))
  {
    SendClientMessage(playerid, oranje, "You need to be on foot to rob");
        return;
    }
Код:
(411) : warning 202: number of arguments does not match definition
Reply
#4

Function IsPlayerInVehicle has two parameters (playerid & vehicle), i guess you want to use IsPlayerInAnyVehicle function.
Reply
#5

ahh, ty
Reply
#6

Posted another bug / question
Reply
#7

Quote:
Originally Posted by Don Correlli
Function IsPlayerInVehicle has two parameters (playerid & vehicle), i guess you want to use IsPlayerInAnyVehicle function.
Nice catch, yah thats the one i meant to type.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)