Detaljan opis problema: Daje mi 4 errore
Dio skripte:
C:\Documents and Settings\Mikjo\Desktop\SAMP Roleplay script\gamemodes\LGRP.pwn(11857) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Mikjo\Desktop\SAMP Roleplay script\gamemodes\LGRP.pwn(11857) : error 036: empty statement
C:\Documents and Settings\Mikjo\Desktop\SAMP Roleplay script\gamemodes\LGRP.pwn(11858) : warning 225: unreachable code
C:\Documents and Settings\Mikjo\Desktop\SAMP Roleplay script\gamemodes\LGRP.pwn(11858) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mikjo\Desktop\SAMP Roleplay script\gamemodes\LGRP.pwn(11858) : warning 215: expression has no effect
C:\Documents and Settings\Mikjo\Desktop\SAMP Roleplay script\gamemodes\LGRP.pwn(11858) : error 001: expected token: ";", but found "if"Neke slike/video za lakse dobivanje pomoci(neobavezno):
CMD:makeadmin(playerid, params[])
{
new pID, value;
if(IsAdmin(playerid, 1); return SendClientMessage(playerid, COLOR_RED, "You're not authorized to that command!"); //Tu mi daje errore
else if (sscanf(params, "ui", pID, value)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /makeadmin ");
else if (value < 0 || value > 1338) return SendClientMessage(playerid, COLOR_WHITE, "Unknown Level! Valid Levels: 1, 2, 3, 4, 1337");
else if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY,"Invalid player specified");
else
{
new pName, tName, string;
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
GetPlayerName(pID, tName, MAX_PLAYER_NAME);
format(string, sizeof(string), ": You have promoted %s to Admin level %i", tName, value);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), ": Congratulations, you have been promoted to Admin level %i by %s", value, pName);
SendClientMessage(pID, COLOR_RED, string);
PlayerInfo = value;
}
return 1;
} 