08.10.2013, 16:27
Hello everyone, I am currently developing a 'different' gamemode, as I never seen before, and I am wondering...how can I give the weapons higher demage? Let's say 1 hit will take down, 500 HP?
And another problem of mine, is that the playerscore won't save..I don't know why tho'.
Here's my disconnect.
And here's my login..
And yet, it won't save the score. (The score is given once you kill someone.)
Thanks in advance!
And another problem of mine, is that the playerscore won't save..I don't know why tho'.
Here's my disconnect.
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Score",PlayerInfo[playerid][pScore]);
INI_Close(File);
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
Thanks in advance!