I have a question.
#10

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
No need to waste 3 lines for a simple message...

pawn Код:
if(yourvipvariable[playerid] == 0)  return SendClientMessage(playerid, -1, "You are not VIP");
Or

pawn Код:
if(!yourvipvariable[playerid][Vip]) return SendClientMessage(playerid, -1, "You are not VIP");
There are more ways to do that
pawn Код:
if(yourvipvariable[playerid] > 0)
{
    //continue the code
}
Quote:
Originally Posted by KinderClans
Посмотреть сообщение
A clear looking code, 2 brackets, 1 return, for what? Sending a simple message.
A simple message which will make the player understand why can't he use the command, if you don't do that then the player will get confused and will start asking around. But you're way to lazy to type.
Reply


Messages In This Thread
I have a question. - by murilo2929 - 28.10.2018, 16:16
Re: I have a question. - by d3Pedro - 28.10.2018, 17:47
Re: I have a question. - by KinderClans - 28.10.2018, 21:01
Re: I have a question. - by TheToretto - 28.10.2018, 21:16
Re: I have a question. - by RogueDrifter - 28.10.2018, 21:22
Re: I have a question. - by TheToretto - 28.10.2018, 21:38
Re: I have a question. - by murilo2929 - 28.10.2018, 21:41
Re: I have a question. - by RogueDrifter - 28.10.2018, 22:10
Re: I have a question. - by KinderClans - 28.10.2018, 22:30
Re: I have a question. - by d3Pedro - 29.10.2018, 03:47

Forum Jump:


Users browsing this thread: 1 Guest(s)