11.03.2011, 21:19
Hello guys.
Im makeing a gamemode. I have made a login/register system that is using Dini for stat saveing.
I want to make is save the players weapons when he disconnects, and give him the weapons again whenm he connects.
I have already done like this:
This is from "OnPlayerDisconnect"
(Those are line 107 - 110).
It gives me this error:
Hope you guys can help me. Thank you.
Im makeing a gamemode. I have made a login/register system that is using Dini for stat saveing.
I want to make is save the players weapons when he disconnects, and give him the weapons again whenm he connects.
I have already done like this:
This is from "OnPlayerDisconnect"
pawn Код:
new weapons[13][2];
for(new i = 0; i < 13; i++)
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
dini_IntSet(file, "Weapons", weapons[i][0], weapons[i][1]);
It gives me this error:
Код:
C:\Users\Simon\Desktop\samp server rpg\gamemodes\rpg-gm.pwn(110) : error 017: undefined symbol "i" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.