[Ajuda] warning 202: number of arguments does not match definition
#1

To tentando adicionar a funзгo de salvar as armas aqui no meu servidor mas tб dando esse erro:

gamemodes\teste.pwn(87) : warning 202: number of arguments does not match definition

Код:
public OnPlayerConnect(playerid)
{
	if(dini_Isset("armas.ini",PlayerName(playerid))) GivePlayerWeapon(playerid,dini_Int("armas.ini",PlayerName(playerid)));

}


public OnPlayerDisconnect(playerid, reason)
{
    dini_IntSet("armas.ini",PlayerName(playerid),GetPlayerWeapon(playerid));

}


public OnGameModeInit()
{
    if(!fexist("armas.ini")) dini_Create("armas.ini");
OBS: Primeiro post aqui, entгo desde jб peзo desculpas se postei errado.

OBSІ: A linha 87 й a if(dini_Isset("armas.ini",PlayerName(playerid))) GivePlayerWeapon(playerid,dini_Int("armas.ini",Pla yerName(playerid)));
Reply
#2

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

Substitua o Dini por Dof ;-; faz a mesma coisa e responde melhor

Код:
dini_Exists		        DOF2_FileExists
dini_Remove         	DOF2_RemoveFile
dini_Create         	DOF2_CreateFile
dini_Set			DOF2_SetString
dini_Get         		DOF2_GetString
dini_IntSet                 DOF2_SetInt
dini_Int         	        DOF2_GetInt
dini_BoolSet               DOF2_SetBool
dini_Bool                   DOF2_GetBool
dini_FloatSet 	        DOF2_SetFloat
dini_Float      		DOF2_GetFloat
dini_Unset       		DOF2_Unset
dini_Isset       		DOF2_IsSet
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)