Need a Little Help
#1

Okay, i am scripting something similar to SARPS "Points", my /capture works, at least it looks to, it sends the Client Messages. Script:
Код:
	if(strcmp(cmd, "/capture", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(PlayerInfo[playerid][pRank] > 4)
	      {
	    		if(PlayerToPoint(30.0,playerid,-1525.5349,2635.0120,55.8359))
						{
						currentpoint = 1;
						curfamily = PlayerInfo[playerid][pFMember];
						pointcappers = FamilyInfo[curfamily][FamilyName];
						SendClientMessageToAll(COLOR_LIGHTRED, "The Point Is Being Captured");
						SendClientMessage(playerid, COLOR_WHITE, "You are attempting to cap the point.");
						SetTimer("CapTimer",1,false);
						return 1;
						}
				}
			}
		}
However, the CapTimer never goes off, it never sends the client message and it doesnt update the Scriptfile.

And yes, i realize it is set to one milisecond, it was set to a minute, bu tthat didnt work either.

If you could help that would be great


Код:
public CapTimer()
{
PointInfo[currentpoint][PointHours] = PointInfo[currentpoint][ResetHours];
PointInfo[currentpoint][OwndFamilyName] = pointcappers;
SendClientMessageToAll(COLOR_LIGHTRED, "The Point Has Been Captured");
SavePoints();
}
EDIT: And no, there is no errors upon compile.
Reply


Messages In This Thread
Need a Little Help - by Trill - 06.07.2009, 22:18
Re: Need a Little Help - by Finn - 06.07.2009, 22:32
Re: Need a Little Help - by happyface - 06.07.2009, 23:44
Re: Need a Little Help - by Trill - 07.07.2009, 00:14
Re: Need a Little Help - by happyface - 07.07.2009, 00:49
Re: Need a Little Help - by Correlli - 07.07.2009, 01:02
Re: Need a Little Help - by Trill - 07.07.2009, 02:05
Re: Need a Little Help - by Correlli - 07.07.2009, 02:17
Re: Need a Little Help - by Trill - 07.07.2009, 02:21
Re: Need a Little Help - by Correlli - 07.07.2009, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)