01.05.2013, 11:42
i have some bug about ShowPlayerDialog
after i go to the checkpoint,
it show
and after i go to the checkpoint again
but it show
i want it show
Code
after i go to the checkpoint,
it show
pawn Код:
ShowPlayerDialog(playerid,1946,DIALOG_STYLE_MSGBOX,"{FFA1A1}Mapping Center","{F81414}You Was bought License To Mapping :D" ,"OKAY","");
and after i go to the checkpoint again
but it show
pawn Код:
ShowPlayerDialog(playerid,1946,DIALOG_STYLE_MSGBOX,"{FFA1A1}Mapping Center","{F81414}You Was bought License To Mapping :D:" ,"OKAY","");
pawn Код:
ShowPlayerDialog(playerid,1946,DIALOG_STYLE_MSGBOX,"{FFA1A1}Mapping Center","{F81414}you already bought license to mapping, use /co to mapping D:" ,"OKAY","");
Code
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1019.2029,2376.1060,10.8203))
{
if(PlayerMap[playerid] == 0)
{
ShowPlayerDialog(playerid,1946,DIALOG_STYLE_MSGBOX,"{FFA1A1}Mapping Center","{F81414}you already bought license to mapping, use /co to mapping D:" ,"OKAY","");
}
ShowPlayerDialog(playerid,1945,DIALOG_STYLE_MSGBOX,"{FFA1A1}Mapping Center","{F81414}You Was bought License To Mapping :D" ,"OKAY","");
GivePlayerMoney(playerid, -250000);
PlayerMap[playerid] = 1;
return 1;
}
return 0;
}