24.07.2012, 15:47
Код:
C:\Users\N0FeaR\Desktop\New folder\gamemodes\IBP.pwn(2633) : error 039: constant symbol has no size C:\Users\N0FeaR\Desktop\New folder\gamemodes\IBP.pwn(2635) : error 028: invalid subscript (not an array or too many subscripts): "WeedInfo" C:\Users\N0FeaR\Desktop\New folder\gamemodes\IBP.pwn(2635) : warning 215: expression has no effect C:\Users\N0FeaR\Desktop\New folder\gamemodes\IBP.pwn(2635) : error 001: expected token: ";", but found "]" C:\Users\N0FeaR\Desktop\New folder\gamemodes\IBP.pwn(2635) : error 029: invalid expression, assumed zero C:\Users\N0FeaR\Desktop\New folder\gamemodes\IBP.pwn(2635) : fatal error 107: too many error messages on one line
pawn Код:
}
forward SyncTime();
public SyncTime()
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
for(new b = 0; b < sizeof(WeedInfo); b++)
{
if(WeedInfo[b][WeedPlanted] == 1 && WeedInfo[b][WeedTime] > 0)
{
WeedInfo[b][WeedTime] -= 1;
if(WeedInfo[b][WeedTime] >= 17 && WeedInfo[b][WeedTime] <= 20)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-2.2,100.0);
}
if(WeedInfo[b][WeedTime] >= 15 && WeedInfo[b][WeedTime] <= 17)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-2.1,100.0);
}
if(WeedInfo[b][WeedTime] >= 13 && WeedInfo[b][WeedTime] <= 15)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-2.0,100.0);
}
if(WeedInfo[b][WeedTime] >= 11 && WeedInfo[b][WeedTime] <= 13)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-1.9,100.0);
}
if(WeedInfo[b][WeedTime] >= 9 && WeedInfo[b][WeedTime] <= 11)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-1.8,100.0);
}
if(WeedInfo[b][WeedTime] >= 8 && WeedInfo[b][WeedTime] <= 9)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-1.7,100.0);
}
if(WeedInfo[b][WeedTime] >= 7 && WeedInfo[b][WeedTime] <= 8)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-1.6,100.0);
}
if(WeedInfo[b][WeedTime] >= 6 && WeedInfo[b][WeedTime] <= 7)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-1.5,100.0);
}
if(WeedInfo[b][WeedTime] >= 5 && WeedInfo[b][WeedTime] <= 6)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-1.4,100.0);
}
if(WeedInfo[b][WeedTime] >= 1 && WeedInfo[b][WeedTime] <= 5)
{
MoveDynamicObject(weedObject[b],WeedInfo[b][WeedX],WeedInfo[b][WeedY],WeedInfo[b][WeedZ]-1.3,100.0);
}
}
}
}
}