01.09.2009, 23:53
I tried to add a system on my GM, when a player enter in a car, it shows its owner. But it's like bugged ...
I made some tests, and the system works, but only when it's not a String ...
I made some tests, and the system works, but only when it's not a String ...
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if (IsAnOwnedCar(vehicleid) && !ispassenger) { SendClientMessage(playerid,0xAFAFAFAA,"message test"); //NOT BUGGED } }
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if (IsAnOwnedCar(vehicleid) && !ispassenger) { format(lvehicle, sizeof(lvehicle), "Owner : %d", CARSHOP[vehicleid][Owner]); // BUGGED SendClientMessage(playerid,0xAFAFAFAA,lvehicle); } }