27.11.2011, 07:43
Hey,
Try this maybe?
Also, where are you opening the dialog? What command? You'll need to show that command as well.
Try this maybe?
pawn Код:
if(strcmp(cmdtext, "/r", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "Je bent niet in een voertuig.");
RepairVehicle(GetPlayerVehicleID(playerid));
GivePlayerMoney(playerid, -10000);
SendClientMessage(playerid, COLOR_MGREEN, "[INFO]{FFFFFF} Voertuig gerepareert.");
return 1;
}