24.05.2010, 17:11
Код:
public Kalastamine()
{
new playerid;
SendClientMessage(playerid, ROHELINE, "* pььdsid kala kinni");
PlayerInfo[playerid][pKalu]++;
PlayerPlaySound(playerid, 1057, 0, 0, 0);
print("Taimer: Kalastamine");
}
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);
}


Maybe a loop in the public Kalastamine() :P