How to make this box? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make this box? (
/showthread.php?tid=127447)
How to make this box? -
ruckfules99 - 13.02.2010
How do i make a box like this?
Re: How to make this box? -
GTAguillaume - 13.02.2010
ShowPlayerDialog
Re: How to make this box? -
ruckfules99 - 13.02.2010
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
Re: How to make this box? -
woot - 13.02.2010
http://forum.sa-mp.com/index.php?topic=130168.0
Re: How to make this box? -
ruckfules99 - 13.02.2010
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..
Re: How to make this box? -
woot - 13.02.2010
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. ^^
Re: How to make this box? -
ruckfules99 - 13.02.2010
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
Re: How to make this box? -
Miguel - 13.02.2010
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;
}