02.03.2014, 20:55
Here :
Why The Timer Isn't Working/Starting ?
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;
}