19.10.2010, 00:28
I'm having a problem with a script that I'm making dealing with the vehicle locks by skin. It would be fine, but I need to unlock them by more than one skin.
The errors I'm getting
The vehicles
Where I'm trying to lock them
If you have any ideas on how to fix this, please tell me.
The errors I'm getting
Код:
C:\Users\Cody\Downloads\samp_editor\superior.pwn(374) : error 022: must be lvalue (non-constant) C:\Users\Cody\Downloads\samp_editor\superior.pwn(374) : error 029: invalid expression, assumed zero C:\Users\Cody\Downloads\samp_editor\superior.pwn(374) : error 022: must be lvalue (non-constant) C:\Users\Cody\Downloads\samp_editor\superior.pwn(374) : fatal error 107: too many error messages on one line
Код:
AddStaticVehicleEx(416,694.76531982,1826.11572266,5.60975170,350.07501221,-1,3,900); //Ambulance AddStaticVehicleEx(416,690.32727051,1826.86010742,5.60975170,350.07385254,-1,3,900); //Ambulance AddStaticVehicleEx(416,685.88867188,1827.59741211,5.60975170,350.07385254,-1,3,900); //Ambulance AddStaticVehicleEx(416,697.53906250,1841.11462402,5.75975227,171.24841309,-1,3,900); //Ambulance AddStaticVehicleEx(490,669.92352295,1846.14270020,5.65664911,215.09503174,1,1,900); //FBI Rancher AddStaticVehicleEx(597,683.20507812,1847.69848633,5.32010651,214.55493164,1,1,900); //Police Car (SFPD) AddStaticVehicleEx(609,668.04101562,1830.94836426,5.39025021,350.07501221,-1,3,900); //Boxville AddStaticVehicleEx(609,672.97027588,1830.17468262,5.39025021,350.07385254,-1,3,900); //Boxville AddStaticVehicleEx(609,677.37530518,1829.25622559,5.39025021,350.07385254,-1,3,900); //Boxville AddStaticVehicleEx(609,681.80017090,1828.58691406,5.39025021,350.07385254,-1,3,900); //Boxville AddStaticVehicleEx(490,674.38012695,1845.97412109,5.65664911,215.09033203,1,1,900); //FBI Rancher AddStaticVehicleEx(490,678.36822510,1846.85974121,5.65664911,215.09033203,1,1,900); //FBI Rancher
Код:
public OnVehicleStreamIn(vehicleid, forplayerid) { new playerid; if(vehicleid >= 1 && vehicleid <= 12){ if( (GetPlayerSkin(playerid) = 287) || (GetPlayerSkin(playerid) = 274) || (GetPlayerSkin(playerid) = 275) || (GetPlayerSkin(playerid) = 276) || (GetPlayerSkin(playerid) = 277) || (GetPlayerSkin(playerid) = 278) || (GetPlayerSkin(playerid) = 279) ){ SetVehicleParamsForPlayer(vehicleid,forplayerid,0,0); }else{ SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1); } } return 1; }