25.05.2013, 00:31
I am trying to make a turf system, but can't seem to get the handle of it. Currently, I've looked over everything and I can't seem to find what's causing it. This is the command that uses the timer, and I also included the timer on the bottom. I am recieving these errors when I compile:
The errors are all happening on the line where my timer is. It is on the bottom of the script I posted here.
EDIT: I'd also like to mention all of my timers work, and I literally copy & pasted this and changed the name of the timer.
Код:
C:\Users\Steven\Desktop\Imperious Roleplay\gamemodes\wastelandwturf.pwn(9728) : error 012: invalid function call, not a valid address C:\Users\Steven\Desktop\Imperious Roleplay\gamemodes\wastelandwturf.pwn(9728) : warning 215: expression has no effect C:\Users\Steven\Desktop\Imperious Roleplay\gamemodes\wastelandwturf.pwn(9728) : error 001: expected token: ";", but found ")" C:\Users\Steven\Desktop\Imperious Roleplay\gamemodes\wastelandwturf.pwn(9728) : error 029: invalid expression, assumed zero C:\Users\Steven\Desktop\Imperious Roleplay\gamemodes\wastelandwturf.pwn(9728) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
CMD:startwar(playerid, params[])
{
if(PlayerInfo[playerid][pFamily] >= 1 && PlayerInfo[playerid][pRank] >= 5)
{
new tier;
switch(FamilyInfo[PlayerInfo[playerid][pFamily]][fTier])
{
case 1: tier = 1;
case 2: tier = 2;
case 3: tier = 3;
}
new zoneid = GetPlayerWarZone(playerid);
if(zoneid != -1)
{
if(GetPlayersInZone(zoneid, PlayerInfo[playerid][pFamily]) >= MINIMUMMEMBERS)
{
ZoneAttacker[zoneid] = PlayerInfo[playerid][pFamily];
ZoneAttackTime[zoneid] = 0;
GangZoneFlashForAll(ZoneID[zoneid], 0xADD8E6FF);
repeat WarZoneTimer(zoneid);
}
}
else return SendClientMessageEx(playerid, COLOR_GRAY, "You are not inside a zone!");
}
else return SendClientMessageEx(playerid, COLOR_GRAY, "You are not in a family / You are not rank 5 or above");
return 1;
}
timer WarZoneTimer[1000](zoneid) //THis is where the error is happening
{
return 1;
}