Skripta koju koristim: GTA RP
Detaljan opis problema: Gledajte ja kada ukucam /count ono odbroji i posle kad iskucam opet kaze vec je zapoceto kako da izbacim to zapoceto da mogu bilo kad da radim /count??
Dio skripte:if(strcmp(cmdtext,"/count",true) == 0)
{
new Float:X, Float:Y, Float:Z;
new pName[30];
if (auts == false)
{
auts = true;
GetPlayerName(playerid, pName, 30);
format(string, 280, "*** %s je zapoceo odbrojavanje.", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 3 ~g~-",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count2",1000,0);
SetTimer("count1",2000,0);
SetTimer("countgo",3000,0);
SetTimer("stop",6000,0);
}
else
{
SendClientMessage(playerid, 0xFF9900AA, "Vec je zapoceto!");
return 1;
}
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):
else
{
SendClientMessage(playerid, 0xFF9900AA, "Vec je zapoceto!");
return 1;
}
makni to...
Citat}
if(strcmp(cmdtext,"/count",true) == 0)
{
new Float:X, Float:Y, Float:Z;
new pName[30];
if (auts == false)
{
auts = true;
GetPlayerName(playerid, pName, 30);
format(string, 280, "*** %s je zapoceo odbrojavanje.", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 3 ~g~-",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count2",1000,0);
SetTimer("count1",2000,0);
SetTimer("countgo",3000,0);
SetTimer("stop",6000,0);
}
else
{
Evo taj!
Bomb ova tvoja cmd ima 26 errora da znas a ti Narco kad obrisem dobijam 26 errora isto
Nemaš jednak broj { }
[code]if(strcmp(cmdtext,"/count",true) == 0)
{
new Float:X, Float:Y, Float:Z;
new pName[30];
if (auts == false)
{
auts = true;
GetPlayerName(playerid, pName, 30);
format(string, 280, "*** %s je zapoceo odbrojavanje.", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 3 ~g~-",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count2",1000,0);
SetTimer("count1",2000,0);
SetTimer("countgo",3000,0);
SetTimer("stop",6000,0);
}
}
}
[/code]
ev probaj ovak..
To much error in line tako kaze
probaj onda ovako..
neznam ali nebi trebalo bacit erore
if(strcmp(cmdtext,"/count",true) == 0)
{
new Float:X, Float:Y, Float:Z;
new pName[30];
if (auts == false)
{
auts = true;
GetPlayerName(playerid, pName, 30);
format(string, 280, "*** %s je zapoceo odbrojavanje.", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 3 ~g~-",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count2",1000,0);
SetTimer("count1",2000,0);
SetTimer("countgo",3000,0);
SetTimer("stop",6000,0);
}
}
opet 26 komada neznam sta je
Citat[FS] CountDown/Odbrojavanje
http://balkan-samp.com/forum/index.php?topic=30985.0