11.11.2015, 23:19
poderiam me ajudar com esse codigo que eu fiz ?
C:\Users\Jefferson\Desktop\www adm dayz\supremo.pwn(13 : warning 209: function "cmd_deletacc" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
C:\Users\Jefferson\Desktop\www adm dayz\supremo.pwn(13 : warning 209: function "cmd_deletacc" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
PHP Code:
CMD:deletacc(playerid,params[])
{
if(pSuper[playerid][Supremo] >= 1)
{
new file2[155], aname[MAX_PLAYER_NAME], string[125];
GetPlayerName(playerid, aname, sizeof(aname));
format(file2, sizeof(file2), "Contas/%s.ini", aname);
if (DOF2_FileExists(file2)) {
DOF2_RemoveFile(file2);
format(string, sizeof(string), " | INFO | Vocк deletou a conta %s.");
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), " | INFO-SERVER | O Administrador %s deletou a conta: %s", aname);
SendClientMessageToAll(-1, string);
}
else {
SendClientMessage(playerid, -1, " | ERRO | Este usuario nгo existe!");
}
return 1;
}
}