forward starttime(playerid, vehicleid); public starttime(playerid, vehicleid) { static str[16]; static amount = 30; static amount2 = 4; if(amount <= 0) { IsStarted[0] = true; amount2 = amount2-1; format(str, sizeof(str), "%i", amount2); for(new i;i<8;i++) { if(GrottiTPlayer[i] == -1) { GameTextForPlayer(i, str, 1200, 3); PlayerPlaySound(i, 1056, 0, 0, 0); SetCameraBehindPlayer(i); TextDrawHideForPlayer(i, GrottiT[0]); TextDrawHideForPlayer(i, GrottiT[1]); TextDrawHideForPlayer(i, GrottiT[2]); TextDrawHideForPlayer(i, GrottiT[3]); TextDrawHideForPlayer(i, GrottiT[4]); TextDrawHideForPlayer(i, GrottiT[5]); TextDrawHideForPlayer(i, GrottiT[6]); TextDrawHideForPlayer(i, GrottiT[7]); TextDrawHideForPlayer(i, GrottiT[8]); TextDrawHideForPlayer(i, GrottiT[9]); TextDrawHideForPlayer(i, GrottiT[10]); } } if(amount2 <= 0) { KillTimer(tstarttime); for(new i; i < 8; i++) { if(GrottiTPlayer[i] == -1) { TogglePlayerControllable(i, 1); GameTextForPlayer(i, "GO!", 1000, 3); PlayerPlaySound(i, 1057, 0, 0, 0); SetPlayerRaceCheckpoint(i,0,617.816467,-1214.835815,17.872802,632.711059,-1399.011596,13.103024,6); /* Rodeo */ GrottiTCP[i] = 1; } } } } amount = amount-1; format(str, sizeof(str), "Start ~y~%i", amount); TextDrawSetString(GrottiT[10], str); if(amount >= 1) TextDrawShowForPlayer(playerid, GrottiT[10]); }
static amount = 30;
if(amount <= 0)
amount = amount-1; format(str, sizeof(str), "Start ~y~%i", amount); TextDrawSetString(GrottiT[10], str); if(amount >= 1) TextDrawShowForPlayer(playerid, GrottiT[10]);
forward starttime(playerid, vehicleid);
public starttime(playerid, vehicleid)
{
static str[16];
static amount = 30;
static amount2 = 4;
format(str, 16, "1:%d, 2:%d", amount, amout2), SendClientMessage(playerid, -1, str);
if(amount <= 0)
{
amount2 = --;
IsStarted[0] = true;
format(str, sizeof(str), "%i", amount2);
for(new i;i<8;i++)
{
if(GrottiTPlayer[i] == -1)
{
GameTextForPlayer(i, str, 1200, 3);
PlayerPlaySound(i, 1056, 0, 0, 0);
SetCameraBehindPlayer(i);
for(new j; j<sizeof(GrottiT); j++) TextDrawHideForPlayer(i, GrottiT[j]);//This hides all the GrottiT textdraws
}
}
if(amount2 <= 0)
{
KillTimer(tstarttime);
for(new i; i < 8; i++)
{
if(GrottiTPlayer[i] == -1)
{
TogglePlayerControllable(i, 1);
GameTextForPlayer(i, "GO!", 1000, 3);
PlayerPlaySound(i, 1057, 0, 0, 0);
SetPlayerRaceCheckpoint(i,0,617.816467,-1214.835815,17.872802,632.711059,-1399.011596,13.103024,6); /* Rodeo */
GrottiTCP[i] = 1;
}
}
}
}
else TextDrawShowForPlayer(playerid, GrottiT[10]);
amount = --;
format(str, sizeof(str), "Start ~y~%i", amount);
TextDrawSetString(GrottiT[10], str);
return 1;
}
[03:28:28] 1:30, 2:4 [03:28:29] 1:30, 2:3 [03:28:30] 1:30, 2:2 [03:28:32] 1:30, 2:1 [03:28:33] 1:30, 2:0 [03:28:34] 1:30, 2:-1 [03:28:36] 1:30, 2:-2 [03:28:37] 1:30, 2:-3 [03:28:38] 1:30, 2:-4 [03:28:40] 1:30, 2:-5 [03:28:41] 1:30, 2:-6 [03:28:42] 1:30, 2:-7 [03:28:44] 1:30, 2:-8 [03:28:45] 1:30, 2:-9 [03:28:46] 1:30, 2:-10 [03:28:48] 1:30, 2:-11 [03:28:49] 1:30, 2:-12 [03:28:50] 1:30, 2:-13 [03:28:52] 1:30, 2:-14 [03:28:53] 1:30, 2:-15 [03:28:54] 1:30, 2:-16 [03:28:56] 1:30, 2:-17 [03:28:57] 1:30, 2:-18 [03:28:59] 1:30, 2:-19 [03:29:00] 1:30, 2:-20 [03:29:01] 1:30, 2:-21 [03:29:03] 1:30, 2:-22 [03:29:04] 1:30, 2:-23 [03:29:05] 1:30, 2:-24 [03:29:07] 1:30, 2:-25 [03:29:08] 1:30, 2:-26 [03:29:09] 1:30, 2:-27 [03:29:11] 1:30, 2:-28 [03:29:12] 1:30, 2:-29 [03:29:13] 1:30, 2:-30 [03:29:15] 1:30, 2:-31 [03:29:16] 1:30, 2:-32 [03:29:17] 1:30, 2:-33 [03:29:19] 1:30, 2:-34 [03:29:20] 1:30, 2:-35 [03:29:21] 1:30, 2:-36 [03:29:23] 1:30, 2:-37 [03:29:24] 1:30, 2:-38
forward starttime(playerid, vehicleid);
public starttime(playerid, vehicleid)
{
static str[16];
static amount = 30;
static amount2 = 4;
format(str, 16, "1:%d, 2:%d", amount, amout2), SendClientMessage(playerid, -1, str);
if(amount <= 0)
{
amount2 = --;
IsStarted[0] = true;
format(str, sizeof(str), "%i", amount2);
for(new i;i<8;i++)
{
if(GrottiTPlayer[i] == -1)
{
GameTextForPlayer(i, str, 1200, 3);
PlayerPlaySound(i, 1056, 0, 0, 0);
SetCameraBehindPlayer(i);
for(new j; j<sizeof(GrottiT); j++) TextDrawHideForPlayer(i, GrottiT[j]);//This hides all the GrottiT textdraws
}
}
if(amount2 <= 0)
{
KillTimer(tstarttime);
for(new i; i < 8; i++)
{
if(GrottiTPlayer[i] == -1)
{
TogglePlayerControllable(i, 1);
GameTextForPlayer(i, "GO!", 1000, 3);
PlayerPlaySound(i, 1057, 0, 0, 0);
SetPlayerRaceCheckpoint(i,0,617.816467,-1214.835815,17.872802,632.711059,-1399.011596,13.103024,6); /* Rodeo */
GrottiTCP[i] = 1;
}
}
}
}
else TextDrawShowForPlayer(playerid, GrottiT[10]);
amount --;
format(str, sizeof(str), "Start ~y~%i", amount);
TextDrawSetString(GrottiT[10], str);
return 1;
}
error 029: invalid expression, assumed zero
amount2 = --;
amount = amount-1;
there is kinda problem:
Код:
error 029: invalid expression, assumed zero Код:
amount2 = --; Код:
amount = amount-1; anyway, it aint workin |