23.04.2010, 10:58
hello, i did made a prepaid system in my script, it work, but it give automatic prepaid 11 .. and it must be 0
its more, but you don't need the dialog/menu of it and you dont need the command
does someone know the fault?
pawn Код:
//pInfo
pPrepaid,
//OnPlayerReset
PlayerInfo[playerid][pPrepaid] = 0;
//Register command
format(var, 32, "%d pPrepaid\n", PlayerInfo[playerid][pPrepaid]);fwrite(hFile, var);
//LoginPlayer
fread(file, valtmp);PlayerInfo[playerid][pPrepaid] = strlen(valtmp);
//UpdatePlayer
format(var, 32, "%d pPrepaid\n", PlayerInfo[playerid][pPrepaid]);fwrite(hFile, var);
does someone know the fault?