SA-MP Forums Archive
Help !!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help !!! (/showthread.php?tid=498318)



Help !!! - Ahmad45123 - 02.03.2014

Here :
pawn Код:
forward SaveW(playerid);
public SaveW(playerid)
{
    for (new i = 0; i == 3; i++)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Now Starting Again");
        if(player[playerid][W][i] != 0)
        {
            SendClientMessage(playerid, COLOR_WHITE, "ID Accepted");
            new ammo;
            new temp;
            GetPlayerWeaponData(playerid, player[playerid][W][i], temp, ammo);
            if(temp != player[playerid][W][i]) return 0;
            player[playerid][A][i] = ammo;
            SendClientMessage(playerid, COLOR_WHITE, "Now Should Work, xD");
        }
    }
    SavePlayer(playerid);
    return 1;
}
public OnPlayerSpawn(playerid)
{
    SetPlayerMapIcon(playerid, 0, 1483.4205,-1412.5730,11.8828, 18, COLOR_WHITE, 1);
    SetTimerEx("SaveW", 5000, true, "d", playerid);
    SendClientMessage(playerid, COLOR_WHITE, "Started.");
    return 1;
}
Why The Timer Isn't Working/Starting ?


Re: Help !!! - THE_KING$5$ - 02.03.2014

you need to make a Timer Forward ( i think maybe, Possible i might be worng ) :P
Try Creating a Timer with forward and public.