SA-MP Forums Archive
[Ajuda] Warning - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Warning (/showthread.php?tid=676806)



Warning - yRamos14 - 19.06.2020

Olб, Nгo consegui resolver isso sozinho, e tambйm nao sei usar muito a Dini, To Precisando de uma Ajuda nisso:
Quote:

Linha (41) : warning 202: number of arguments does not match definition
Linha (Cinquenta e Oito) : warning 202: number of arguments does not match definition
Linha (59) :warning 202: number of arguments does not match definition
Linha (62) : warning 202: number of arguments does not match definition
Linha (62) : warning 202: number of arguments does not match definition

PHP Code:
//linha 41
if(dini_Isset("Weapon.ini",PlayerName(playerid))) GivePlayerWeapon(playerid,dini_Int("Weapon.ini",PlayerName(playerid)));
//linha 58
dini_IntSet("Health.ini",PlayerName(playerid),GetPlayerHealth(playerid));
//linha 59
dini_IntSet("Armour.ini",PlayerName(playerid),GetPlayerArmour(playerid));
//linha 62
dini_IntSet("IPPlayers.ini",PlayerName(playerid),GetPlayerIp(playerid)); 



Re: Warning - cicinho - 21.06.2020

PHP Code:
    new Float:Health[MAX_PLAYERS],
        
Float:Armour[MAX_PLAYERS],
        
IP[MAX_PLAYERS][20];
    
    
GetPlayerIp(playeridIP[playerid], 20);
    
GetPlayerHealth(playeridHealth[playerid]);
    
GetPlayerArmour(playeridArmour[playerid]);
    
    
//linha 41
    
if(dini_Isset("Weapon.ini"PlayerName(playerid)))
        
GivePlayerWeapon(playeriddini_Int("Weapon.ini"PlayerName(playerid)), 9999);
    
    
//linha 58
    
dini_FloatSet("Health.ini"PlayerName(playerid), Health[playerid]);

    
//linha 59
    
dini_FloatSet("Armour.ini"PlayerName(playerid), Armour[playerid]);

    
//linha 62
    
dini_Set("IPPlayers.ini"PlayerName(playerid), IP[playerid]);