27.07.2009, 04:50
Lol that's wrong. Return means the end of a callback or function. the number beside it determines what value the function or callback will give when it's used.
For example:
Hope that helps
For example:
pawn Код:
ExampleFunction(playerid)
{
if(playerid==stupid)return 1;
if(playerid==bacon)return 5;
return 0;
}
//someplace else
if(ExampleFunction(24)) // This can equal 1, 5, or 0 depending on what it returns
{
SendClientMessage(playerid,0xFF0000FF,"You suck!");
}else{
SendClientMessage(playerid,0xFF0000FF,"I'm indifferent towards you!");
}