Quick Question
#2

It's possible to do it all in one line like this...

pawn Код:
if(GetPlayerVirtualWorld(playerid) != 3 && GetPlayerVirtualWorld(playerid) != 4) return SendClientMessage(playerid, 0xAFFFFAF, "ERROR: You cannot use this command here.");
But its better to store the player's virtual world in a variable:

pawn Код:
new pWorld = GetPlayerVirtualWorld(playerid);
if(pWorld != 3 && pWorld != 4) return SendClientMessage(playerid, 0xAFFFFAF, "ERROR: You cannot use this command here.");
//If the player isn't in virtual world 3 or 4...
Reply


Messages In This Thread
Quick Question (Solved) - by Kayla.S - 04.08.2010, 01:29
Re: Quick Question - by PotH3Ad - 04.08.2010, 02:35
Re: Quick Question - by Kayla.S - 04.08.2010, 02:53

Forum Jump:


Users browsing this thread: 1 Guest(s)