Dialog Bug
#1

Hello i have dialog bug i try to plate check
but its show the stats of id 0



PHP код:
case 1542:
{
for(new 
0MAX_PLAYERSi++)
{
new 
pnumber strval(inputtext);
//new price1 = pnumber-0;
if(Player[i][CarPlate1] == pnumber)
{
new 
string[500];
BonusCar Player[i][PlayerCarModel];
format(stringsizeof(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");
}

Reply
#2

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");
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)