SA-MP Forums Archive
[Ajuda] Problemas Com Dof2 - 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] Problemas Com Dof2 (/showthread.php?tid=634561)



Problemas Com Dof2 - WoozieBRz - 21.05.2017

eu tendo problemas com dof2 eu tinha comeзado com dini mais й pior ... nгo gostei fui pra dof2 mais agora fica dando warning e nгo ta reconheзendo o cуdigo pra salvar armas alguem pode ajudar ae ?

no ongamemodeinit:

PHP Code:
if(!fexist("Weapon.ini")) DOF2_CreateFile("Weapon.ini"); 
nessa parte do onplayerconnect da esse warning:

PHP Code:
warning 202number of arguments does not match definition 
no onplayerconnect:

PHP Code:
if(DOF2_IsSet("Weapon.ini",PlayerName(playerid))) GivePlayerWeapon(playerid,DOF2_GetInt("Weapon.ini",PlayerName(playerid))); 
no onplayerdisconnect:

PHP Code:
DOF2_SetInt("Weapon.ini",PlayerName(playerid),GetPlayerWeapon(playerid)); 
a stock que pega o nome:

PHP Code:
stock PlayerName(playerid)
{
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    return 
name;

pode me dizer oque ta errado ?
e explicar ...


Re: Problemas Com Dof2 - MultiKill - 21.05.2017

Leia o que o aviso quer dizer:

Code:
nъmero de argumentos nгo corresponde а definiзгo
Agora olhe os argumentos que devem ser passados para funзгo GivePlayerWeapon.


Re: Problemas Com Dof2 - WoozieBRz - 21.05.2017

Quote:
Originally Posted by MultiKill
View Post
Leia o que o aviso quer dizer:

Code:
nъmero de argumentos nгo corresponde а definiзгo
Agora olhe os argumentos que devem ser passados para funзгo GivePlayerWeapon.
o cara confundiu give com get '-' mds sу aprendo errado -.-' , vlw ai


Re: Problemas Com Dof2 - WoozieBRz - 21.05.2017

Quote:
Originally Posted by MultiKill
View Post
Leia o que o aviso quer dizer:

Code:
nъmero de argumentos nгo corresponde а definiзгo
Agora olhe os argumentos que devem ser passados para funзгo GivePlayerWeapon.
nгo mano deu msm warning '-'