edit: ok problem fixed.
One more Question, do you know how to spawm at hospital after death ? |
Oh sorry about that, as you might have noticed/figured out im relatively new on sa-mp forum. However I got some programming experience. Btw are you Knight(Eazy_K) from RD?
|
if(IsModelABike(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Helmet or Else you can get Ticked! (/helmet)"); } else { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seat Belt or Else you can get Ticked! (/belt)"); } } else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar)) { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attention! Type /engine or press SHIFT to start your engine!"); TogglePlayerControllable(playerid, false); SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Drive Carefully!"); SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seatbelt/Helmet or Else you can get Ticked! (/belt)"); } }
Someone help me please!
I got this error: gamemodes\larp.pwn(75126) : error 010: invalid function or declaration Код:
if(IsModelABike(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Helmet or Else you can get Ticked! (/helmet)"); } else { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seat Belt or Else you can get Ticked! (/belt)"); } } else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar)) { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attention! Type /engine or press SHIFT to start your engine!"); TogglePlayerControllable(playerid, false); SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Drive Carefully!"); SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seatbelt/Helmet or Else you can get Ticked! (/belt)"); } } Help please.. Thanks! |
if(IsModelABike(GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Helmet or Else you can get Ticked! (/helmet)"); } else { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seat Belt or Else you can get Ticked! (/belt)"); } else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar)) { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attention! Type /engine or press SHIFT to start your engine!"); TogglePlayerControllable(playerid, false); SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Drive Carefully!"); SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seatbelt/Helmet or Else you can get Ticked! (/belt)"); } }
what have you changed ?
edit: well.. i got more errors now! gamemodes\larp.pwn(75125) : error 029: invalid expression, assumed zero gamemodes\larp.pwn(75125) : warning 215: expression has no effect gamemodes\larp.pwn(75125) : error 001: expected token: ";", but found "if" |
for(new h = 1; h < sizeof(CarInfo); h++) { format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h); if(fexist(string2)) { if(CarInfo[h][cOwned] == 0) { ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],-1336.6174,-203.8509,5.7055+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); } else //add this { ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); } if(CarInfo[h][cPaintjob] != 999) { ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]); } SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]); SetVehicleModifications(h); } }
delete it for(new h = 0; h < sizeof(ownedcar); h++) { if(IsAnOwnableCar(h) && CarInfo[h][cOwned] == 0) { DestroyVehicle(h); } }
SafeRemovePlayerFromVehicle(playerid); CarInfo[ownvehkey][cOwned] = 0; CarInfo[ownvehkey][cLock] = 1; // add this DestroyVehicle(ownvehkey);
Nope, your method doens't work too.
Still this same problem that car is invisible. But if i go to car and set my int again to 0 then i can see this car. Can anybody help me? |
THX BingBang
1 - why when people lock and unlock his car all alone? and everyone can take it ... 2 - why when a player dies or when there is a reboot it loses its skin? |
http://pastebin.com/5a4HsAMA |