Scripting...
#1

Simple Questions , What's the use of Return?? in Scripting what's the purpose of it?? why sometimes, return 1; and sometimes return 0;
Reply
#2

pawn Код:
return 1;
1 = true
0 = false
Example
pawn Код:
if(IsPlayerConnected(playerid)) return 1;
else return 0;
Means if player is connected, return true will continue, and else (if the player is not connected return 0; means it won't let the script continue.
Reply
#3

Let me put it like this, return 1 means "yes, carry on". Return 0 means "no, don't continue".
Lmao best we to put it IMO
Reply
#4

There's a whole bunch of statements and examples for what they do here: https://sampwiki.blast.hk/wiki/Keywords:Statements
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)