Getan, er Printet mir:
[17:45:44] DialogTypeTimer1
[17:45:44] DialogTypeTimer2
[17:45:44] DialogTypeTimer3
[17:45:44] DialogTypeTimer4
[17:45:44] DialogTypeTimer5
[17:45:44] DialogTypeTimer6
[17:45:44] DialogTypeTimer7
[17:45:44] DialogTypeTimer8
[17:45:44] DialogTypeTimer9
[17:45:44] DialogTypeTimer9
[17:45:44] DialogTypeTimer10
[17:45:44] DialogTypeTimer11
[17:45:44] DialogTypeTimer12
[17:45:44] DialogTypeTimer14
[17:45:44] DialogTypeTimer15
forward DialogTypeTimer(playerid);
public DialogTypeTimer(playerid)
{
new dialogid, style, caption[64], string[1024], rest[1024], button1[32], button2[32];print("DialogTypeTimer1");
dialogid = GetPVarInt(playerid, "t_dialogid");print("DialogTypeTimer2");
style = GetPVarInt(playerid, "t_style");print("DialogTypeTimer3");
GetPVarString(playerid, "t_caption", caption, sizeof(caption));print("DialogTypeTimer4");
GetPVarString(playerid, "t_string", string, sizeof(string));print("DialogTypeTimer5");
GetPVarString(playerid, "t_rest", rest, sizeof(rest));print("DialogTypeTimer6");
GetPVarString(playerid, "t_button1", button1, sizeof(button1));print("DialogTypeTimer7");
GetPVarString(playerid, "t_button2", button2, sizeof(button2));print("DialogTypeTimer8");
new strr[1024];print("DialogTypeTimer9");
//Ein Buchstabe hinzufügen
format(strr, sizeof(strr), "%s%c", string, rest[0]);print("DialogTypeTimer9");
ShowPlayerDialog(playerid, dialogid, style, caption, strr, button1, button2);print("DialogTypeTimer10");
SetPVarString(playerid, "t_string", strr);print("DialogTypeTimer11");
//Den hinzugefügten Buchstabe aus dem Rest entfernen
SetPVarString(playerid, "t_rest", rest[1]);print("DialogTypeTimer12");
if(rest[1] == '\0' || !strlen(rest[1]))print("DialogTypeTimer13");
{
if(pTypeTimer[playerid] != -1) KillTimer(pTypeTimer[playerid]);print("DialogTypeTimer14");
pTypeTimer[playerid] = -1;print("DialogTypeTimer15");
}
ReshowTypeDialog(playerid);print("DialogTypeTimer16");
return 1;
}