12.09.2018, 17:46
Код:
C:\Users\Marcenaria Alves\Desktop\a\Crear Server DavitMT\GM Family Triads\GM Family Triads\gamemodes\futurerp.pwn(258) : warning 202: number of arguments does not match definition C:\Users\Marcenaria Alves\Desktop\a\Crear Server DavitMT\GM Family Triads\GM Family Triads\gamemodes\futurerp.pwn(258) : warning 202: number of arguments does not match definition C:\Users\Marcenaria Alves\Desktop\a\Crear Server DavitMT\GM Family Triads\GM Family Triads\gamemodes\futurerp.pwn(258) : error 035: argument type mismatch (argument 3)
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 655:
{
if(response)
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,655,DIALOG_STYLE_INPUT,"{00FFAA}Reportar um bug","Faзa uma breve descriзгo do problema.\nExemplo:{00CC00}Jogador quando morre nгo renasce!","Reportar","Sair");
}
else
{
new arq[20];
format(arq,sizeof(arq),"reportbugnumber.ini");
DOF2_SetInt(arq,"Numero",DOF2_GetInt(arq,"Numero") + 1);
new novoarq[64];
format(novoarq,sizeof(novoarq),"report%d.ini",DOF2_GetInt(arq,"Numero"));
DOF2_CreateFile(novoarq,"a");
DOF2_SetString(novoarq,"Conteudo",inputtext);
DOF2_SetString(novoarq,"Remetente",GetPlayerName(playerid)); //esta linha
new string[128];
format(string,sizeof(string),"Obrigado pelo seu report, a staff agradece!",DOF2_GetInt(arq,"Numero"));
SCM(playerid,cor_amarelo,string);
}
}
}
return 1;
}