[Ajuda] warning 209: function "cmd_deletacc" should return a value Pawn
#5

Quote:
Originally Posted by willttoonn
View Post
Aquele return ali, nгo vai servir de nada se nгo tem nada embaixo do cуdigo que vocк deseja privar caso ele nгo tenha aquele IF.

Entгo usa assim:

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; 
 }
aehh funfo mt obrigado
Reply


Messages In This Thread
warning 209: function "cmd_deletacc" should return a value Pawn - by zPawnu - 11.11.2015, 23:19
Re: warning 209: function "cmd_deletacc" should return a value Pawn - by arakuta - 11.11.2015, 23:23
Re: warning 209: function "cmd_deletacc" should return a value Pawn - by zPawnu - 11.11.2015, 23:30
Re: warning 209: function "cmd_deletacc" should return a value Pawn - by willttoonn - 11.11.2015, 23:33
Re: warning 209: function "cmd_deletacc" should return a value Pawn - by zPawnu - 11.11.2015, 23:34

Forum Jump:


Users browsing this thread: 2 Guest(s)