Dialog Bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Bug (
/showthread.php?tid=411500)
Dialog Bug -
UnAngel - 29.01.2013
Hello i have dialog bug i try to plate check
but its show the stats of id 0
PHP код:
case 1542:
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new pnumber = strval(inputtext);
//new price1 = pnumber-0;
if(Player[i][CarPlate1] == pnumber)
{
new string[500];
BonusCar = Player[i][PlayerCarModel];
format(string, sizeof(string), "Vehicle owner:%s\nVehicle plate:%d\nVehicle model:%s\nVehicle color:%s",RemoveUnderScore(i),pnumber,GetVehicleModelIDFromName(Player[i][PlayerCarModel]),GetVehicleColorName(Player[i][CarCol1]));
ShowPlayerDialog(playerid,12319,DIALOG_STYLE_MSGBOX ,"Vehicle Information | Mobile Data Computer", string, "Back", "Close");
}
}
Re: Dialog Bug -
Roach_ - 29.01.2013
Try this:
pawn Код:
case 1542:
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(Player[i][CarPlate1] == strval(inputtext))
{
new string[500];
BonusCar = Player[i][PlayerCarModel];
format(string, sizeof string, "Vehicle owner:%s\nVehicle plate:%d\nVehicle model:%s\nVehicle color:%s", RemoveUnderScore(i), strval(inputtext), GetVehicleModelIDFromName(Player[i][PlayerCarModel]), GetVehicleColorName(Player[i][CarCol1]));
ShowPlayerDialog(playerid,12319,DIALOG_STYLE_MSGBOX ,"Vehicle Information | Mobile Data Computer", string, "Back", "Close");
}
}
}