whats wrong with this timer thing?
#1

Код:
public Kalastamine()
{
    new playerid;
	SendClientMessage(playerid, ROHELINE, "* pььdsid kala kinni");
	PlayerInfo[playerid][pKalu]++;
	PlayerPlaySound(playerid, 1057, 0, 0, 0);
	print("Taimer: Kalastamine");
}
no errors, no warnings

but ingame i have set timer to 1minut but it does nothin in-game it should add +1 item and play sound but it only prints Taimer: Kalastamine in console whats the problem?


SetTimer("Kalastamine",60000,true); //1 Minut
forward Kalastamine();


Код:
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1438.7590,512.7771,18.7258))//Kalastamise koht
{
LoopingAnim(playerid,"PED","SEAT_down",4.1,0,1,1,1,0);
SendClientMessage(playerid, LILLA, "* alustasid kalapььgiga");
SetTimer("Kalastamine",60000,true); //1 Minut
new string2[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string2, sizeof(string2), "%s pakib oma kalastus vahendid lahti ning alustab pььgiga", pname);
SendLocalMessage(playerid, LILLA, 7, string2);
}
Reply
#2

Where is the Timer code?
Reply
#3

i edited look now.. iv put everything there but yeh
Reply
#4

Try with SetTimerEx Maybe a loop in the public Kalastamine() :P
Reply
#5

Maybe some problem with the Anim or your pKalu variable?
EDIT: you don't get the message ROHELINE... ingame?
Reply
#6

do

forward Something(playerid);

and then

SetTimerEx("Something", interval, repeating, "i", playerid);

and so
Reply
#7

il try
Reply
#8

With SetTimerEx it works Thnx for all the help
Reply
#9

np
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)