Alles anzeigenHier hab dir eben was gescriptet, kannst es ja dann noch abspeichern oder so
#define DIALOG_CreateChangelog 2554365361
#define DIALOG_Changelog 2525167722
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/createchangelog", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, DIALOG_CreateChangelog, DIALOG_STYLE_INPUT, "Changelog","Changelog updaten:","Absenden","Abbrechen");
return 1;
}
if(strcmp("/changelog", cmdtext, true) == 0)
{
new string[256];
GetPVarString(playerid,"Changelog", string, sizeof(string));
ShowPlayerDialog(playerid, DIALOG_Changelog, DIALOG_STYLE_MSGBOX, "Changelog",string,"Ok","");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CreateChangelog)
{
if(response==0)
{
return 1;
}
if(response==1)
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid, DIALOG_CreateChangelog, DIALOG_STYLE_INPUT, "Changelog","Changelog updaten:","Absenden","Abbrechen");
return 1;
}
else
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPVarString(i,"Changelog",inputtext);
return 1;
}
return 1;
}
}
}
return 0;
}
Habe es mal hiermit versucht,dann kommen diese Erros:
C:\Users\David\Desktop\LnD\gamemodes\Training.pwn(7) : error 017: undefined symbol "strcmp"
C:\Users\David\Desktop\LnD\gamemodes\Training.pwn(7) : error 001: expected token: ";", but found ")"
C:\Users\David\Desktop\LnD\gamemodes\Training.pwn(7) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\LnD\gamemodes\Training.pwn(7) : fatal error 107: too many error messages on one line