if and else if problem
#3

pawn Код:
else if(!IsSultanVehicle(GetPlayerVehicleID(playerid)))return SendClientMessage (playerid, COLOR_YELLOW, "TEXT HERE!"); // <--------- Here is the first(1) Problem!
You had a extra bracket at
Код:
if(!IsSultanVehicle(GetPlayerVehicleID(playerid))) << over here. Take one bracket out, which will look like this.
pawn Код:
if(!IsSultanVehicle(GetPlayerVehicleID(playerid)) - after
if(!IsSultanVehicle(GetPlayerVehicleID(playerid))) - before
Same here for the next one.
Delete one bracket.

pawn Код:
else if(!IsSultanVehicle(GetPlayerVehicleID(playerid)))return SendClientMessage (playerid, COLOR_YELLOW, "TEXT HERE!"); - before

else if(!IsSultanVehicle(GetPlayerVehicleID(playerid))return SendClientMessage (playerid, COLOR_YELLOW, "TEXT HERE!"); after
Reply


Messages In This Thread
if and else if problem - by HardRock - 18.06.2013, 01:18
Re: if and else if problem - by HardRock - 18.06.2013, 01:53
Re: if and else if problem - by JustinAn - 18.06.2013, 01:57
Re: if and else if problem - by HardRock - 18.06.2013, 02:16
Re: if and else if problem - by HardRock - 18.06.2013, 02:46
Re: if and else if problem - by HardRock - 18.06.2013, 12:47
Re: if and else if problem - by PrinceKumar - 18.06.2013, 13:03
Re: if and else if problem - by HardRock - 18.06.2013, 13:08
Re: if and else if problem - by PrinceKumar - 18.06.2013, 13:11
Re: if and else if problem - by Littlehelper - 18.06.2013, 13:15

Forum Jump:


Users browsing this thread: 1 Guest(s)