Timer minutes saving dini
#1

Okay I want to make a timer who is not allowing to scrap something after scraping 10 minutes and save it with dini, that when player logs in again timer runs left time. poor english -_-
This is timer:

pawn Код:
SetTimerEx("scraping",PlayerInfo[playerid][pScrap]*100000,0,"iffffi",playerid,-225.6496,984.9903,19.5899,93.5538,0);
This is saving:

pawn Код:
dini_IntSet(usfile,"Scraptime",PlayerInfo[playerid][pScrap]);
But timer is not saving. Whats wrong? I mean timer dont gets to PlayerInfo[playerid]pScrap
Reply
#2

no ideas?
Reply
#3

help help help
Reply
#4

triple post...is forbidden, start using "edit" option
Reply
#5

No one answered an thread was far away... so
Reply
#6

Quote:

forward scraping(playerid);

after the stuff:
Quote:

SetTimerEx("scraping", 1000, 1);

Quote:

public scraping(playerid)
{
dini_IntSet(usfile,"Scraptime",PlayerInfo[playerid][pScrap]);
return 1;
}

i coluldn't understand the real problem really
Reply
#7

Ech... How to save timer time with dini?
Reply
#8

Check this thread you might find an answer there.
https://sampforum.blast.hk/showthread.php?tid=273517
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)