20.04.2010, 15:28
Hi guys lets get to the point,
I have this
And it give me this
I know its a logical error but I don't know how to fix it.
Regards,
Jeroen
I have this
Код:
SaveWeaponsToFile(playerid) { new i, path[50], string[128], weaponid, ammo; path = GetPlayerFormattedName(playerid); if (!dini_Exists(path)) dini_Create(path); for (i=0; i<13; i++) { GetPlayerWeaponData(playerid,i,weaponid,ammo); format(string,sizeof(string),"Weapon - %d",i); dini_IntSet(path,string,weaponid); format(string,sizeof(string),"AmmoID - %d",i); dini_IntSet(path,string,ammo == 65535 ? 0 : ammo); } } public LoadWeaponsToFile(playerid) { new i, path[128], string[256], weaponid; path = GetPlayerFormattedName(playerid); ResetPlayerWeapons(playerid); for (i=0; i<13; i++) { format(string,sizeof(string),"Weapon - %d",i); weaponid = dini_Int(path,string); format(string,sizeof(string),"AmmoID - %d",i); int ammo = dini_Int(path, string); //<< Line 45738 GivePlayerWeapon(playerid,weaponid,ammo); //<< Line 45739 } AlreadyGiveWeapons[playerid] = true; } public RemoveWeaponsFile(playerid) { new path[128]; path = GetPlayerFormattedName(playerid); dini_Remove(path); }
Код:
H:\Users\Jeroen\Desktop\RP SACGTA(1).pwn(45738) : error 017: undefined symbol "int" H:\Users\Jeroen\Desktop\RP SACGTA(1).pwn(45738) : error 017: undefined symbol "ammo" H:\Users\Jeroen\Desktop\RP SACGTA(1).pwn(45739) : error 017: undefined symbol "ammo"
Regards,
Jeroen