11.08.2013, 03:28
I have a problem, im new to using dialogs...
This is what i have, (also i havent set up my dialog responses yet...)
But, the problem so far is that when i use this code, it only works for the first dialog, id1... It pops up, but the others dont, it compiles fine... But in game, doesnt work properly, can someone fix the code for me...? Also can someone show me how to set up the dialog responses for this?
This is what i have, (also i havent set up my dialog responses yet...)
pawn Code:
{
{
if(!IsPlayerInRangeOfPoint(playerid, 8.0, 3167.4341, 500.0863, 4.7500)) return SendClientMessage(playerid,-1,"You need to be in the Galaxy Mall."); // change the co-ords to the ones you want
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Galaxy Mall : Ammunition","Spraycan [$100]\nBat [$50]\nGolf Club [$70]\nShovel [$70]\nKatana [$100]\nCamera [$60]","Purchase","Exit");
}
{
if(!IsPlayerInRangeOfPoint(playerid, 8.0, 3164.3389, 522.0725, 11.9411)) return SendClientMessage(playerid,-1,"You need to be in the Galaxy Mall."); // change the co-ords to the ones you want
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Galaxy Mall : Fashion","Mask [$350]\nRuffles [$10]\nCoca-Cola [$10]\nCheeseburger [$15]","Purchase","Exit");
}
{
if(!IsPlayerInRangeOfPoint(playerid, 8.0, 3071.0244, 532.2115, 11.7497)) return SendClientMessage(playerid,-1,"You need to be in the Galaxy Mall."); // change the co-ords to the ones you want
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Galaxy Mall : Bar","Cigarettes [$40]\nBeer [$20]","Purchase","Exit");
}
return 1;
}