View Single Post
Old 27/07/2015, 09:56 PM   #2
Mencent
High-roller
 
Mencent's Avatar
 
Join Date: Mar 2015
Location: Lower Saxony (Niedersachsen)
Posts: 1,311
Reputation: 92
Default AW: How to use return 1/0 ?

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;
    }

__________________
Best wishes,
Mencent

(Sorry for my bad english, I hope you can understand this!)
Mencent is offline   Reply With Quote