How to use return 1/0 ?
#2

Hello!

It's both the same only it return one times 1 and one times 0.
But it is both the same.

This is better as you don't use return.
PHP Code:
if(listitem == 0)
{
    if(
PlayerData[playerid][pLocateCar] == 1)
    {
        
format(szMessage,sizeof szMessage,"Your car (Model: %s) has been respawned!",VehicleNames[PlayerData[playerid][pCarModel1]-400]);
        
SendClientMessage(playerid,COLOR_WHITE,szMessage);
        return 
1;
    }

Reply


Messages In This Thread
How to use return 1/0 ? - by Nin9r - 27.07.2015, 21:50
AW: How to use return 1/0 ? - by Mencent - 27.07.2015, 21:56
Re: How to use return 1/0 ? - by Rodri99 - 27.07.2015, 21:57
Re: AW: How to use return 1/0 ? - by Nin9r - 27.07.2015, 21:59
Re: How to use return 1/0 ? - by TenTen - 27.07.2015, 22:00
Re: How to use return 1/0 ? - by Nin9r - 27.07.2015, 22:03
Re: How to use return 1/0 ? - by Abagail - 27.07.2015, 22:05
AW: How to use return 1/0 ? - by Mencent - 27.07.2015, 22:07
Re: How to use return 1/0 ? - by Nin9r - 27.07.2015, 22:10
Re: How to use return 1/0 ? - by !damo!spiderman - 27.07.2015, 22:13

Forum Jump:


Users browsing this thread: 1 Guest(s)