28.08.2010, 21:43
Hello!
Im trying to make team cars with the cars coords, if you dont is a member/leader of 1 you get removed from the vehicle. I dont know if i doing wrong or if i am on the right road here.
So far i got these problems ( the line code is after = )
Can i do like this? and do i missing some important code to get it to work properly?
The code
Im trying to make team cars with the cars coords, if you dont is a member/leader of 1 you get removed from the vehicle. I dont know if i doing wrong or if i am on the right road here.
So far i got these problems ( the line code is after = )
Код:
pwn(293) warning 213: tag mismatch = {476,1978.6555,-2396.0037,14.2643,89.5653}, pwn(293) warning 213: tag mismatch = {476,1978.6555,-2396.0037,14.2643,89.5653}, pwn(293) warning 213: tag mismatch = {476,1978.6555,-2396.0037,14.2643,89.5653}, pwn(293) warning 213: tag mismatch = {476,1978.6555,-2396.0037,14.2643,89.5653}, pwn(293) error 008: must be a constant expression; assumed zero = {476,1978.6555,-2396.0037,14.2643,89.5653}, pwn(312) error 008: must be a constant expression; assumed zero = else
The code
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(IsPlayerConnected(playerid)) { if(PlayerBase[playerid][pMedlem] == 1 || PlayerBase[playerid][pLedare] == 1) { if(OnPlayerEnterVehicle(playerid, { {476,1978.6555,-2396.0037,14.2643,89.5653}, {476,1978.7040,-2383.6899,14.2553,90.1082}, {476,1978.8127,-2370.9258,14.2562,89.6564}, {476,1978.7545,-2358.6887,14.2611,90.8094}, {476,1978.7524,-2346.6282,14.2542,90.3923}, {476,1978.7271,-2334.2107,14.2586,89.8635}, {476,1967.9773,-2334.0098,14.2537,89.2006}, {476,1968.0304,-2346.7659,14.2564,89.5600}, {476,1968.0143,-2359.2332,14.2567,89.3761}, {476,1967.8055,-2372.2275,14.2629,89.7649}, {476,1967.7516,-2384.9595,14.2562,89.7772}, {476,1967.9479,-2396.9973,14.2661,90.1868}, {476,1978.8635,-2409.2715,14.2563,89.8173}, {548,1994.9091,-2449.0818,13.6136,87.4790}, {432,1978.8031,-2322.4282,13.5596,89.2325}, {432,1978.6914,-2314.6343,13.5596,89.3591}, {432,1978.3168,-2306.7822,13.5596,88.8411}, {432,1978.5193,-2299.1052,13.5598,88.8872}, } else { RemovePlayerFromVehicle(playerid); } } } }