PropSys Problem
#6

Quote:
Originally Posted by Oi!
pawn Код:
new floatstr;
pawn Код:
new floatstr[MAX_PLAYERS];
Did you not consider that 'floatstr' is actually a function in a_samp? It's used to derive a float from a string
EX:
pawn Код:
if(!strcmp(cmdtext[1],"north",true,5))
{
  new Float:x,Float:y,Float:z;
  GetPlayerPos(playerid,x,y,z);
  SetPlayerPos(playerid,x,y+floatstr(cmdtext[7]),z);
  return 1;
}
Typing "/north 5.5" would make you go north by 5.5 meters.
Reply


Messages In This Thread
PropSys Problem - by Twyke - 20.08.2009, 08:18
Re: PropSys Problem - by Oi! - 20.08.2009, 08:20
Re: PropSys Problem - by Twyke - 20.08.2009, 08:23
Re: PropSys Problem - by Twyke - 20.08.2009, 08:46
Re: PropSys Problem - by Oi! - 20.08.2009, 08:48
Re: PropSys Problem - by Joe Staff - 20.08.2009, 08:55
Re: PropSys Problem - by Twyke - 20.08.2009, 08:57

Forum Jump:


Users browsing this thread: 3 Guest(s)