Weird error on simple command
#1

Код:
CMD:pdo(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] < 1)return SendClientMessage(playerid, COLOR_WHITE, "Samo Admini i V.I.P igraci");
	else if(PlayerInfo[playerid][VIP] < 1)return SendClientMessage(playerid, COLOR_WHITE, "Samo Admini i V.I.P igraci");
	{
		MoveObject(pdkapija, 1544.6999512,-1631.0000000,13.3000002, 5.0);
		pktimer[playerid] = SetTimer("zatvori18", 5000, 0);
		SendClientMessage(playerid, COLOR_WHITE, "("#COL_ORANGE"Paznja!) Otvorio si (IME KAPIJE) kapiju, "#COL_ORANGE"automatski ce se zatvorit!");
	}
	else
	{
		SendClientMessage(playerid, COLOR_WHITE, "| VAЉ TEKST | Nemate kljuc za ta vrata.");
	}
	return 1;
}
Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(2017) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Quote:
Originally Posted by FL3GM4
Посмотреть сообщение
Код:
CMD:pdo(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] < 1)return SendClientMessage(playerid, COLOR_WHITE, "Samo Admini i V.I.P igraci");
	else if(PlayerInfo[playerid][VIP] < 1)return SendClientMessage(playerid, COLOR_WHITE, "Samo Admini i V.I.P igraci");
	{
		MoveObject(pdkapija, 1544.6999512,-1631.0000000,13.3000002, 5.0);
		pktimer[playerid] = SetTimer("zatvori18", 5000, 0);
		SendClientMessage(playerid, COLOR_WHITE, "("#COL_ORANGE"Paznja!) Otvorio si (IME KAPIJE) kapiju, "#COL_ORANGE"automatski ce se zatvorit!");
	}
	else
	{
		SendClientMessage(playerid, COLOR_WHITE, "| VAЉ TEKST | Nemate kljuc za ta vrata.");
	}
	return 1;
}
Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(2017) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
what line that the error refer to ?
Reply
#3

Код:
else
is error line :/
Reply
#4

after the else if line
why are you opening brackets when you are returning something?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)