Dialog displays to wrong player.
#1

Hello. I edited some fuel system, and i have problem. The message box (gui) displays always to player with id 0. For example, you have id 2 and the dialog doesn't show to you buy to id 0.

Code

Код:
public Tankowanie(playerid)
{
   	new x, y, string[256];
    x = 150 - VehicleFuel[playerid];
	y = x*3;
    GivePlayerMoney(playerid, -y);
    format(string,sizeof string,"{A8C3E3}Zatankowałeś {FFFFFF}%d {A8C3E3}litrуw paliwa za {FFFFFF}$%d",x,y);
    SendClientMessage(playerid,JasnyNiebieski, string);
    ShowPlayerDialog(playerid, D_CPN_Bankomat, DIALOG_STYLE_MSGBOX, "{FFFFFF}Stacja Paliw - Dziękujemy!", string, "OK", "");
    VehicleFuel[playerid] = 150;
    TogglePlayerControllable(playerid,1);
    return 1;
}
Код:
if (strcmp("/stacja", cmdtext, true, 10) == 0)
	{
	    if((IsPlayerInAnyVehicle(playerid)) && (IsPlayerInRangeOfPoint(playerid, 7.0, -2026.7162,157.0780,29.0391)))
		{
		ShowPlayerDialog(playerid, D_CPN, DIALOG_STYLE_LIST,""WHITE"Stacja Paliwowa","{00FF22}> {FFFFFF}Tankowanie\n{00FF22}> {FFFFFF}Bankomat\n{00FF22}> {FFFFFF}Sklep","Wybierz","Anuluj");
		}
	return 1;

	}
Reply


Messages In This Thread
Dialog displays to wrong player. - by DJGama101 - 31.03.2012, 19:00
Re: Dialog displays to wrong player. - by OxyG3N - 31.03.2012, 19:05
Re: Dialog displays to wrong player. - by DJGama101 - 31.03.2012, 19:07
Re: Dialog displays to wrong player. - by OxyG3N - 31.03.2012, 19:13
Re: Dialog displays to wrong player. - by DJGama101 - 31.03.2012, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)