what id the diffrent between strtok and stock
#1

title^^

and if i put they both in the end of the mod is it right
Reply
#2

strtok is used for making commands with extra parameters like /heal [id].
stock is used for making functions like "PlayerToPoint" e.g:
Код:
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
  	new Float:oldposx, Float:oldposy, Float:oldposz;
  	new Float:tempposx, Float:tempposy, Float:tempposz;
  	GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  	tempposx = (oldposx -x);
  	tempposy = (oldposy -y);
  	tempposz = (oldposz -z);
  	if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  	{
  	  return 1;
  	}
  	return 0;
}
Reply
#3

But to put them both in the end of the mod?
and what is the extra parameters,like many variables O____o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)