ZCMD COLOR
#1

LINE:3321
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
(3321)if(!success) return SendClientMessage(playerid, CRVENA, "{F81414}(INFO) {F81411}Bla bla bla bla bla!")

	new ime[MAX_PLAYER_NAME];
	ImeIgraca(playerid, ime);
 	format(CmdString, sizeof(CmdString), "%s | Naredba: %s", ime, cmdtext);
 	UpisiLog(FAJL_NEULOGOVANLOG, CmdString);
	return 1;
}
Error:
Код:
warning 215: expression has no effect
error 001: expected token: ";", but found "return"
error 001: expected token: ";", but found "new"
Код:
if(!success) return SendClientMessage(playerid, CRVENA, "(INFO) Bla bla bla bla bla!"); <-no error
Reply
#2

Quote:
Originally Posted by Ivana19
Посмотреть сообщение
LINE:3321
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
(3321)if(!success) return SendClientMessage(playerid, CRVENA, "{F81414}(INFO) {F81411}Bla bla bla bla bla!");

	new ime[MAX_PLAYER_NAME];
	ImeIgraca(playerid, ime);
 	format(CmdString, sizeof(CmdString), "%s | Naredba: %s", ime, cmdtext);
 	UpisiLog(FAJL_NEULOGOVANLOG, CmdString);
	return 1;
}
Error:
Код:
warning 215: expression has no effect
error 001: expected token: ";", but found "return"
error 001: expected token: ";", but found "new"
Код:
if(!success) return SendClientMessage(playerid, CRVENA, "(INFO) Bla bla bla bla bla!");
<-- no error
You forgot ";" after the SendClientMessage function
Reply
#3

no....
Reply
#4

IGNORE; my bad
Reply
#5

Yes define,Fix thanks :*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)