Urgent help , easy peasy problem. I rep
#1

FIXED.
Reply
#2

Use format(string... instead, you can't format strings on the ShowPlayerDialog function.
pawn Код:
new string[128];
format(string, sizeof(string), "Points:",PlayerInfo[playerid][SpecialPoints]
ShowPlayerDialog(playerid, 34111, DIALOG_STYLE_LIST, "Title", string, "buy","exit");
Reply
#3

FIXED.
Reply
#4

new string[128];
format(string, sizeof(string), "Points:%d\nPremium shit - 60 premium points\nPremium shit1 - 69 premium points",PlayerInfo[playerid][SpecialPoints]);
ShowPlayerDialog(playerid, 34111, DIALOG_STYLE_LIST, "Title", string, "buy","exit");
Reply
#5

FIXED.
Reply
#6

Thats easy!
pawn Код:
new str[1024],boobs[256]; //main string
format(boobs,sizeof(boobs),"Premium Points: %d",yourvariable); //your dialog heading should be formated before.
strcat(str,"[+] Get Premium Points\n"); // our first thing.
//from second thing onwards use FORMAT & add it similarly like this with a new string.
new tempstr[128];
format(tempstr,sizeof(tempstr),"Premium Account - %d premium points", yourvariable);
strcat(str,tempstr); // now add them to it!
//similarly add it again & again by using STRCAT & FORMAT. Hence your dialog is created.
 ShowPlayerDialog(playerid,34111,DIALOG_STYLE_LIST,boobs,str,"Buy", "Exit");
Reply
#7

THANKS ! THAT'S WHAT I AM TALKING ABOUT ! REP ! +
GOD BLESS YOU!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)