How to make this box?
#1

How do i make a box like this?

Reply
#2

ShowPlayerDialog
Reply
#3

I am not good with making these, Can someone show me an example in the same format as the picture? I can fill in the rest of the code by myself on how to check rob level, etc
Reply
#4

http://forum.sa-mp.com/index.php?topic=130168.0
Reply
#5

I don't understand the tutorial, it only shows how to add login dialogs, teleport dialogs, etc.

i just need help making one showing information about the characters skills.


Can someone code me a simple example i can work on..
Reply
#6

pawn Код:
new string[ 128 ];
format(string, sizeof(string),"Name: %s\nScore: %d\nWanted Level: %d", PlayerName(playerid), GetPlayerScore(playerid), GetPlayerWantedLevel(playerid));
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Player Info", string, "Ok", "Cancel");
Very basic example which doesn't make any sense at all. ^^
Reply
#7

Quote:
Originally Posted by //exora
pawn Код:
new string[ 128 ];
format(string, sizeof(string),"Name: %s\nScore: %d\nWanted Level: %d", PlayerName(playerid), GetPlayerScore(playerid), GetPlayerWantedLevel(playerid));
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Player Info", string, "Ok", "Cancel");
Very basic example which doesn't make any sense at all. ^^
Lol thank you, I can work on that.


Can you tell me how i can place it into my GM? and type a command to launch it so i can see what it looks like and work from that
Reply
#8

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/show", true) == 0)
  {
    new
      string[95];
   
    format(string, sizeof(string), "Rob Level %d\nRape Level %d\nTaze Level %d\nArrest Level %d\nHitman Level %d", var1, var2, var3, var4, var5);
    ShowPlayerDialog(playerid, 141, DIALOG_STYLE_MSGBOX, "Status:", string, "Ok", "Cancel");
    return 1;
  }
  return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)