22.09.2008, 16:13
hi,
I'm using lordscars and scriptet a little bit in there. But now i wan't to add carowners and this is my code:
And i get this error:
on this line:
I'm using lordscars and scriptet a little bit in there. But now i wan't to add carowners and this is my code:
Код:
for(new i=0;i<MAX_PLAYERS;i++) { new vehicleid = GetPlayerVehicleID(i); new ename[256]; new name = GetPlayerName(playerid, ename, sizeof(ename)); if(CarInfo[vehicleid][carsowner] = name) { CarInfo[carsid][carslocked] = 0; SetVehicleParamsForPlayer(vehicleid, playerid, 0, 0); } else { CarInfo[vehicleid][carslocked] = 1; SetVehicleParamsForPlayer(vehicleid, playerid, 0, 1); RemovePlayerFromVehicle(playerid); } }
Код:
warning 211: possibly unintended assignment
Код:
if(CarInfo[vehicleid][carsowner] = name)