Detaljan opis problema: Prebacujem komande iz strcmd u zcmd i izbaci mi ove errore:
invalid expression, assumed zero
undefined symbol "cmd_startlotto"
invalid expression, assumed zero
too many error messages on one lineEvo kada sam prebacio u CMD:
CMD:startlotto(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo >= 1340)
{
format(string, sizeof(string), "Lutrija: Pocinjemo izvlacenje.");
OOCOff(COLOR_DBLUE, string);
new rand = random(80);
if(rand < 77) { rand += 3; }
Lotto(rand);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste OSC !");
return 1;
}
}
return 1;
}Evo izvorna:
if(strcmp(cmd, "/startlotto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo >= 1340)
{
format(string, sizeof(string), "Lutrija: Pocinjemo izvlacenje.");
OOCOff(COLOR_DBLUE, string);
new rand = random(80);
if(rand < 77) { rand += 3; }
Lotto(rand);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste OSC !");
return 1;
}
}
return 1;
}Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //