[Ajuda] Salvar armas
#1

Ola estou com um problema em salvar armas estou usando o Dini para salvar mas
esta dando uma Warning chato na minha GM eu segui o tutorial do ipsBruno

https://sampforum.blast.hk/showthread.php?tid=143657

as codes sao

Em OnPlayerSpawn:


PHP Code:
if(dini_Isset("Weapon.ini",PlayerName(playerid))) GivePlayerWeapon(playerid,dini_Int("Weapon.ini",PlayerName(playerid))); 
em OnPlayerDisconnect:

PHP Code:
dini_IntSet("Weapon.ini",PlayerName(playerid),GetPlayerWeapon(playerid)); 
Em OnGameModeInit:[b]

PHP Code:
if(!fexist("Weapon.ini")) dini_Create("Weapon.ini"); 
e no fim da GM

PHP Code:
stock PlayerName(playerid)
{
new 
Name[MAX_PLAYERS];
GetPlayerName(playeridNamesizeof(Name));
return 
Name;

agora vamos a Warning

PHP Code:
 warning 202number of arguments does not match definition 
linha da Warning

PHP Code:
public OnPlayerSpawn(playerid)
{
    if(
dini_Isset("Weapon.ini",PlayerName(playerid))) GivePlayerWeapon(playerid,dini_Int("Weapon.ini",PlayerName(playerid)));
    
GangZoneShowForPlayer(playeridSPAWN0x00FF40FD);
    return 
1;

Se poder ajudar ficarei grato
Reply


Messages In This Thread
Salvar armas - by SrGhost - 28.09.2019, 04:02
Re: Salvar armas - by MorteAmerica - 28.09.2019, 05:08
Re: Salvar armas - by SrGhost - 28.09.2019, 05:40
Re: Salvar armas - by MorteAmerica - 28.09.2019, 05:47
Re: Salvar armas - by SrGhost - 28.09.2019, 05:54

Forum Jump:


Users browsing this thread: 1 Guest(s)