19.04.2017, 18:58
Hello everyone i need help.... Why its not work...
Look there... its work at "Vehicle For Sale" but down its not work i mean Vehicle By: %s so how should i did it?
PHP код:
new str[512];
format(str, sizeof str, "{FFFFFF}---------------------------[Vehicle For Sale]---------------------------\n", str);
format(str, sizeof str, "%s\n", str);
format(str, sizeof str, "%s{00D700}For Sale!\n", str);
format(str, sizeof str, "%s\n{0098FF}Vehicle Name: {FFFF00}%s\n", str, GetVehicleNameFromModel(xVehicle[xid][xv_ModelID]));
format(str, sizeof str, "%s{0098FF}Plate Number: {FFFF00}%s\n", str, xVehicle[xid][xv_Plaka]);
format(str, sizeof str, "%s{0098FF}Price: {FFFF00}$%d\n", str, xVehicle[xid][xv_Fiyat]);
format(str, sizeof str, "%s\n{FF8000}Do you want to buy this vehicle?{00D700}\n", str);
format(str, sizeof str, "%s\n{FFFFFF}---------------------------[Vehicle For Sale]---------------------------", str);
ShowPlayerDialog(playerid, XV_DIALOGID+5, DIALOG_STYLE_MSGBOX, "Vehicle For Sale", str, "Buy", "Close");
}
else if(xStrcmp(Isim(playerid), xVehicle[xid][xv_Sahip]) && !Iter_Contains(xVehicleKeys<playerid>, xid))
{
new str[512];
format(str, sizeof str, "%s\n{0098FF}Vehicle By: {FFFF00}%s\n", str, GetName(playerid));
SendClientMessage(playerid, -1, "{FF0000}[ERROR]:- {F0AE0F}You dont have keys this car.");
RemovePlayerFromVehicle(playerid);
}