24.09.2014, 13:48
well, at the beginning i was trying to create an account id system and no one helped me so i had to create it by my own and i tried to do it but it seems it wont work so any one can give me ideas here is my code
i know there is some issues so please help
P.S at file count the numbers stays 1 it wont pull over!
pawn Код:
stock Paccountid(playerid)
{
new string[4], stravl1[128];
new File:countfile = fopen("SFTDM/Server Logs/count.txt", io_write);
fread(countfile, string);
new count = strval(string) + 1;
PlayerInfo[playerid][Accountid] = count;
format(stravl1, sizeof stravl1, "%d", count);
fwrite(countfile, stravl1);
fclose(countfile);
return 1;
}
CMD:register ,,,,
dUserSetINT(PlayerName2(playerid)).("accountid",Paccountid(playerid));
P.S at file count the numbers stays 1 it wont pull over!