......Car orgasm?
#1

I have no fucking clue what's causing it. There's two things dealing with the taxis in this script, which are..

My forward:
pawn Код:
forward IsInTaxi(carid);
pawn Код:
public IsInTaxi(carid)
{
    new carmodel = GetVehicleModel(carid);
    if(carmodel == 420)
    {
        return 1;
    }
    return 0;
}
Dealing with the forward:
pawn Код:
else if(strcmp(name, "taxi", true) == 0)
                {
                  if(IsInTaxi(GetPlayerVehicleID(playerid)))
                  {
                    SendClientMessage(playerid, orange, "[OBJECTIVE]: Drive your taxi to the checkpoints, driving as carefully as possible.");
                        SendClientMessage(playerid, white, "[HINT]: The less damage taken, the more you will get paid.");
                        Checkpoint[playerid] = 24;
                        SetPlayerCheckpoint(playerid, 1818.8019,-1911.5210,13.1685, 3);
                  }
                }
Checkpoint 35: (End)
pawn Код:
else if(Checkpoint[playerid] == 35) //Taxi End
    {
      new Float:health;
      new veh;
      new vehicle;
      veh = GetPlayerVehicleID(playerid);
      GetVehicleHealth(veh, health);
      if(health > 900) { SendClientMessage(playerid, white, "Your taxi was returned in excellent condition, you have earned $40."); SGivePlayerMoney(playerid, 40); }
        if(health < 800) { SendClientMessage(playerid, white, "Your taxi was returned in poor condition, you have earned $20."); SGivePlayerMoney(playerid, 20); }
      Checkpoint[playerid] = 0;
      vehicle = GetPlayerVehicleID(playerid);
      RemovePlayerFromVehicle(playerid);
      SetVehicleToRespawn(vehicle);
        DisablePlayerCheckpoint(playerid);
        PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
    }
This is what happens in-game: (Basically, a bunch of cars spawn ontop of them (how the fuck?) and just have a giant orgy, the blow up, and do it again)

[img width=957 height=768]http://i48.tinypic.com/23h4rq0.jpg[/img]
Reply
#2

This happened when my defines for vehicles was MAX_VEHICLES

It tried to spawn the 'MAX_VEHICLES' amount instead of the number that was atcually there
Reply
#3

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
This happened when my defines for vehicles was MAX_VEHICLES

It tried to spawn the 'MAX_VEHICLES' amount instead of the number that was atcually there
Actually, I was using <censored> to get camera angles and shit, and apparently this caused it somehow.. I uninstalled it, went in-game, and it was perfectly fine. Jesus christ, compatibility fail on ******s part?
Reply
#4

WtF?
Reply
#5

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
WtF?
Woah, they have censored shit now.
Reply
#6

Quote:
Originally Posted by Sky4D
Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
WtF?
Woah, they have censored shit now.
Communist / Marxist kids always like to censor shit.
Reply
#7

Quote:
Originally Posted by mprofitt
Quote:
Originally Posted by Sky4D
Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
WtF?
Woah, they have censored shit now.
Communist / Marxist kids always like to censor shit.
Yes, kye is a communist.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)