Jump to content

Recommended Posts

Posted (edited)
  1. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
  2.     new vsid = sVehicle[5][playerid];
  3.   if(CarInfo[vsid][cRainbowC] == 1) {
  4.     if(rainbowcar[playerid] == 0) {
  5.             rainbowcar[playerid] = 1;
  6.             CTimer1 = SetTimerEx("Color1", 500, 0, "d" ,playerid);
  7.         }
  8.         return 1;
  9.     }
  10.   if(CarInfo[vsid][cRainbowC] == 0) {
  11.     if(rainbowcar[playerid] == 1) {
  12.             rainbowcar[playerid] = 0;
  13.             KillTimer(CTimer1);
  14.         }
  15.         return 1;
  16.     }
  17.   if(CarInfo[vsid][cRainbowC] == 0) {
  18.     if(rainbowcar[playerid] == 0) {
  19.             rainbowcar[playerid] = 0;
  20.             KillTimer(CTimer1);
  21.         }
  22.         return 1;
  23.     }
  24. }
  25. Nu stiu exact cum e pe b-hood, dar banuiesc ca ai facut verificarea gresit :-? Cred ca trebuia pus   if(CarInfo[vsid][cRainbowC] == 1)  inainte de rainbowcar[playerid]. Pentru ca intai sa verifice daca acel vehicul are rainbow si dupa variabila rainbowcar. Doar o ipoteza. Daca nu functioneaza cineva mai experimentat ar trebui sa te ajute.
Edited by BaFFyJunior

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.