public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
CMD:kupilotto(playerid, params[])
{
new dir;
dir = strtok(cmdtext, idx);
if (!strlen(dir))
{
SendClientMessage(playerid, COLOR_RED, "USAGE: /lotto ");
return 1;
}
new number = strval(dir);
new interior = GetPlayerInterior(playerid);
if (interior == 17 || interior == 10 || interior == 18 || interior == 16 || interior == 6 || interior == 4)
{
if (LottoParticipant == 1)
{
SendClientMessage(playerid, COLOR_RED, "You have already guessed a number for today.");
}
else
{
if (GetPlayerMoney(playerid) >= LOTTO_PRICE)
{
if (number > 0 && number < 100)
{
if (NumberUsed == 0)
{
new string;
format(string, sizeof(string), "~w~Your lotto number is:~g~ %d ~w~.", number);
GameTextForPlayer(playerid, string, 4000, 3);
PlayerLottoGuess = number;
LottoParticipant = 1;
GivePlayerMoney(playerid, -LOTTO_PRICE);
}
else
{
SendClientMessage(playerid, COLOR_RED, "The number you selected is already used.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "The number you entered is invalid, please type a number between 0 and 99.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You do not have enought money to buy a lotto ticket.");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You can buy lotto tickets only in 24/7 shops.");
}
return 1;
}Detaljan opis problema:
D:\Documents and Settings\Miki\Desktop\Lotto.pwn(70) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\Lotto.pwn(70) : error 017: undefined symbol "cmd_kupilotto"
D:\Documents and Settings\Miki\Desktop\Lotto.pwn(70) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\Lotto.pwn(70) : fatal error 107: too many error messages on one lineDio skripte: Sve erore su na liniju CMD:kupilotto(playerid, params[])
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
