28.02.2013, 21:48
I have a dialog, when i select the first option the playerid need be added in OwnerId[GetPlayerVeh....]
check this
Then when the player enter in the car, the car give the info of the owner of the car but nothing work ;(
EDIT: TESTING! xD
check this
Код:
switch(listitem) { case 0: { OwnerId[GetPlayerVehicleID(playerid)] = playerid; } ...
Код:
new carid = GetPlayerVehicleID(playerid); if(OwnerId[carid] != 0) { new name[MAX_PLAYER_NAME+1]; GetPlayerName(OwnerId[carid], name, sizeof(name)); format(szMessage, sizeof(szMessage), "The owner of this car is: %s", name); SendClientMessage(playerid, COLOR_WHITE, szMessage); }