Dialog wont show
#1

Can someone tell me what I'm doing wrong? For some reason when I join in-game, nothing happens. Like the dialog doesn't even pop-up.

Код HTML:
format(string2, sizeof(string2),"{FFFFFF}%s - test\n",GetPlayerNameEx(playerid));
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "{ffa500}Testing{ffffff}\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), " Test\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), " Test\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "%s %s\n", AddCommas(spawnmoney), AddCommas(spawnbank));
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "\n{ffa500}Testing{ffffff}\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "Test");
			strcat(string2,coordsstring);
			ShowPlayerDialog(playerid,DIALOG_SPAWN,DIALOG_STYLE_MSGBOX,"{ffa500}Test", string2,"Spawn","", GetPlayerNameEx(playerid));
			strcat(string2,coordsstring);
Reply
#2

Код:
            format(string2, sizeof(string2),"{FFFFFF}%s - test\n",GetPlayerNameEx(playerid));
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "{ffa500}Testing{ffffff}\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), " Test\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), " Test\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "%s %s\n", AddCommas(spawnmoney), AddCommas(spawnbank));
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "\n{ffa500}Testing{ffffff}\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "Test");
			strcat(string2,coordsstring);
			ShowPlayerDialog(playerid,DIALOG_SPAWN,DIALOG_STYLE_MSGBOX,"{ffa500}Test", string2,"Spawn","");
Reply
#3

Still doesn't work.
Reply
#4

Quote:
Originally Posted by JesusChrysler
Посмотреть сообщение
Still doesn't work.
Show me the command,and did you added the string variables?
Reply
#5

Quote:
Originally Posted by Fancy
Посмотреть сообщение
Show me the command,and did you added the string variables?
When the player spawns in:
Код HTML:
	SendSpawnDialog(playerid);
Код HTML:
SendSpawnDialog(playerid)
{            
format(string2, sizeof(string2),"{FFFFFF}%s - test\n",GetPlayerNameEx(playerid));
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "{ffa500}Testing{ffffff}\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), " Test\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), " Test\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "%s %s\n", AddCommas(spawnmoney), AddCommas(spawnbank));
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "\n{ffa500}Testing{ffffff}\n");
			strcat(string2,coordsstring);
			format(coordsstring, sizeof(coordsstring), "Test");
			strcat(string2,coordsstring);
			ShowPlayerDialog(playerid,DIALOG_SPAWN,DIALOG_STYLE_MSGBOX,"{ffa500}Test", string2,"Spawn","");
}
Reply
#6

try this?

Код:
        new string[3000], dialog[3000];
        format(string, sizeof(string),"{FFFFFF}%s - test\n",GetPlayerNameEx(playerid));
        strcat(dialog,string);
        format(string, sizeof(string),"\n");
        strcat(dialog,string);
        format(string, sizeof(string),"{ffa500}Testing{ffffff}\n");
        strcat(dialog,string);
        format(string, sizeof(string),"Test\n");
        strcat(dialog,string);
        format(string, sizeof(string),"Test\n");
        strcat(dialog,string);
        format(string, sizeof(string),"%s %s\n", AddCommas(spawnmoney), AddCommas(spawnbank)");
        strcat(dialog,string);
        format(string, sizeof(string),"\n{ffa500}Testing{ffffff}\n\n");
        strcat(dialog,string);
        format(string, sizeof(string),"Test\n");
        strcat(dialog,string);
        ShowPlayerDialog(playerid,DIALOG_SPAWN,DIALOG_STYLE_MSGBOX,"{ffa500}Test",dialog,"Close","");
Reply
#7

Still nothing.
Reply
#8

Have you tried to do like that ?

Код:
format(string2, sizeof(string2),"{FFFFFF}%s - test",GetPlayerNameEx(playerid));
			format(coordsstring, sizeof(coordsstring), "Test");
			format(coordsstring, sizeof(coordsstring), "{ffa500}Testing{ffffff}");
			format(coordsstring, sizeof(coordsstring), " Test");
			format(coordsstring, sizeof(coordsstring), " Test");
			format(coordsstring, sizeof(coordsstring), "%s %s", AddCommas(spawnmoney), AddCommas(spawnbank));
			format(coordsstring, sizeof(coordsstring), "\n{ffa500}Testing{ffffff}");
			format(coordsstring, sizeof(coordsstring), "Test");
			strcat(string2,coordsstring);
}
Reply
#9

Quote:
Originally Posted by SpikeSpigel
Посмотреть сообщение
Have you tried to do like that ?

Код:
format(string2, sizeof(string2),"{FFFFFF}%s - test",GetPlayerNameEx(playerid));
			format(coordsstring, sizeof(coordsstring), "Test");
			format(coordsstring, sizeof(coordsstring), "{ffa500}Testing{ffffff}");
			format(coordsstring, sizeof(coordsstring), " Test");
			format(coordsstring, sizeof(coordsstring), " Test");
			format(coordsstring, sizeof(coordsstring), "%s %s", AddCommas(spawnmoney), AddCommas(spawnbank));
			format(coordsstring, sizeof(coordsstring), "\n{ffa500}Testing{ffffff}");
			format(coordsstring, sizeof(coordsstring), "Test");
			strcat(string2,coordsstring);
}
Still doesn't work.
Reply
#10

Does it work?
PHP код:
format(string2,sizeof string2,"{FFFFFF}%s - test\n\n{FFA500}Testing{FFFFFF}\nTest\nTest\n%s %s\n\n{FFA500}Testing{FFFFFF}\nTest",
GetPlayerNameEx(playerid),AddCommas(spawnmoney),AddCommas(spawnbank));
ShowPlayerDialog(playerid,DIALOG_SPAWN,DIALOG_STYLE_MSGBOX,"{FFA500}Test",string2,"Spawn",""); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)