return function.
#1

-------------------
Reply
#2

Any can help me ?
Reply
#3

What is it that you require? Please explain more !
EDIT: I guess he needs a stock which returns true/false depending on if the player is in a certain team or not.
If that is it, it's like:

pawn Код:
stock IsPlayerInTeam( playerid, teamid )
{
     if ( GetPlayerTeam( playerid ) == teamid ) return true;
     else return false;
}
This uses GetPlayerTeam And SetPlayerTeam which hardly anyone uses. If you use custom teams, specify them here.
Reply
#4

Neither do I understand what he wants to do. Explain in details, please.
Reply
#5

I use instead of return 1; function return (true);

I can ?
Reply
#6

Actually, they're same.
pawn Код:
return 1;
return true;
return (1);
return (true); // never tried that, but it should work.
Just try it out, if the compiler doesn't give you anything, then it's fine.
Reply
#7

Thanks for replay Dwane
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)