27.10.2009, 18:52
yea, but it wont work. here is the script where it goes to the 3rd level:
i think there should be a better and more organisable way to do this?
Код:
if(dialogid == DIALOGID+1) // points { new s[128]; format(s,sizeof(s),"Points: %i\n\nCost: %i$",PointsQuantity,gCheckout[playerid]); ShowPlayerDialog(playerid, DIALOGID+3,0,"Points",s,"Buy","Back"); //goes to 3 here } else if(dialogid == DIALOGID+2) // info { return 1; } else if(dialogid == DIALOGID+3 && CurrMoney >= gCheckout[playerid]) // Buy points { new PointsStringbought[128]; format(PointsStringbought,sizeof(PointsStringbought),"You have bought %i Points for $%i",PointsQuantity,gCheckout[playerid]); GivePlayerMoney(playerid,-gCheckout[playerid]); PInfo[playerid][Points] = PInfo[playerid][Points]+PointsQuantity; ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "TITLE", "Enter\nBuy Points\n Information", "Select", "Cancel"); return 1; }