returns
#6

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Ok, I think i understand it a little bit more.

So, what happen if i return 1 value or if I return 0 value ?

For example on this code:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/lanzacohetes"cmdtexttrue10) == 0)
    {
        
SendClientMessage(playeridCOLOR_WHITE,"[SERVIDOR]: Se te ha sido concedido un lanzacohetes.");
        
GivePlayerWeapon(playerid36500);
        return 
1;
    } 
If you can explain me in a no-programmer language it would be better, what happens line by line and what happens when it reach the return line, with 1 value and 0 value
Reply


Messages In This Thread
returns - by Watermelonnable - 11.02.2017, 04:53
Re: returns - by DandyCorleone - 11.02.2017, 05:15
Re: returns - by DandyCorleone - 11.02.2017, 05:23
Re: returns - by Watermelonnable - 11.02.2017, 08:07
Re: returns - by StrikerZ - 11.02.2017, 08:10
Re: returns - by Watermelonnable - 11.02.2017, 09:06
Re: returns - by Vince - 11.02.2017, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)