SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 27/07/2015, 10:14 PM   #8
Nin9r
Huge Clucker
 
Join Date: Feb 2015
Posts: 331
Reputation: 3
Default Re: AW: How to use return 1/0 ?

Quote:
Originally Posted by Mencent View Post
1.) It is better, otherwise the codes continue also if you don't want it.

2.) No, it is not a problem but the codes will continue also if you don't want it.
So, which is good?

Code:
if(PlayerData[playerid][pLoaded] == 1)
	    	{
				SetPlayerCheckpoint(playerid, 997.4530, -920.2242, 42.1797, 10.0);
			}
	    	else if(PlayerData[playerid][pLoaded] == 2)
	    	{
				SetPlayerCheckpoint(playerid, 935.0326, -1724.0830, 13.5469, 10.0);

	    	}
or
Code:
if(PlayerData[playerid][pLoaded] == 1)
	    	{
				SetPlayerCheckpoint(playerid, 997.4530, -920.2242, 42.1797, 10.0);
return 1;
			}
	    	else if(PlayerData[playerid][pLoaded] == 2)
	    	{
				SetPlayerCheckpoint(playerid, 935.0326, -1724.0830, 13.5469, 10.0);
return 1;
	    	}
Nin9r is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the diffrences between Return True and Return False davidstyle1125 Scripting Help 4 09/12/2014 08:34 PM
return true vs return 1 +rep genesis87 Scripting Help 3 02/02/2012 08:24 AM
When do I return? NiiRV4N4 Help Archive 9 13/06/2010 04:14 PM


All times are GMT. The time now is 02:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.