26.10.2018, 13:46
Hi people, i have a small problem with save armour
Anyone can help me please?
ON OnPlayerSpawn:
if(dini_Isset("Armour.ini",PlayerName(playerid))) SetPlayerArmour(playerid,dini_Int("Armour.ini",Pla yerName(playerid)));
ON OnPlayerDisconnect:
dini_IntSet("Armour.ini",PlayerName(playerid),GetP layerArmour(playerid));
ON OnGameModeInit:
if(!fexist("Armour.ini")) dini_Create("Armour.ini");
The problem :
warning 202: number of arguments does not match definition
dini_IntSet("Armour.ini",PlayerName(playerid),GetP layerArmour(playerid));
Anyone can help me please?
ON OnPlayerSpawn:
if(dini_Isset("Armour.ini",PlayerName(playerid))) SetPlayerArmour(playerid,dini_Int("Armour.ini",Pla yerName(playerid)));
ON OnPlayerDisconnect:
dini_IntSet("Armour.ini",PlayerName(playerid),GetP layerArmour(playerid));
ON OnGameModeInit:
if(!fexist("Armour.ini")) dini_Create("Armour.ini");
The problem :
warning 202: number of arguments does not match definition
dini_IntSet("Armour.ini",PlayerName(playerid),GetP layerArmour(playerid));