How to make this to return 2 things
#6

Quote:
Originally Posted by iZN
Посмотреть сообщение
pawn Код:
if (HP >= 100) return SetPlayerHealth(playerid, 100), 0; // false (0)
Like this guy said. Just add a "coma" (,) after each sentence you would write in brackets ( { } ).

More examples:
Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You're not an admin."), SendClientMessage(playerid, -1, "Coz you're a noob."), SendClientMessage(playerid, -1, "And you did probably not apply for it!!!");

if(a <= 10) return a = 5, b = 6;

if(b == 25925) return a = 52, false;
Reply


Messages In This Thread
How to make this to return 2 things - by barts - 09.01.2014, 16:00
Re: How to make this to return 2 things - by Cassely1704 - 09.01.2014, 16:04
Re: How to make this to return 2 things - by iZN - 09.01.2014, 16:06
Respuesta: How to make this to return 2 things - by Swedky - 09.01.2014, 16:08
Re: How to make this to return 2 things - by barts - 09.01.2014, 16:11
Re: How to make this to return 2 things - by Hansrutger - 09.01.2014, 16:18
Re: How to make this to return 2 things - by erminpr0 - 09.01.2014, 16:26
Re: How to make this to return 2 things - by barts - 09.01.2014, 16:29
Re: How to make this to return 2 things - by Hansrutger - 09.01.2014, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)