12.05.2014, 16:32
i added this cmd to the moneybag script
full code: http://pastebin.com/UtUsMXG2
i am getting this errors
C:\DOCUME~1\SAIKUM~1\Desktop\Server\Gm\MONEYB~1.PW N(567) : error 017: undefined symbol "playerid"
C:\DOCUME~1\SAIKUM~1\Desktop\Server\Gm\MONEYB~1.PW N(567) : warning 213: tag mismatch
C:\DOCUME~1\SAIKUM~1\Desktop\Server\Gm\MONEYB~1.PW N(569) : error 017: undefined symbol "playerid"
C:\DOCUME~1\SAIKUM~1\Desktop\Server\Gm\MONEYB~1.PW N(580) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
my aim is to make a command that shows that how many meters the player is away from the pickup ot moneyag
pawn Код:
if(!strcmp("/mbdis", cmdtext, true))
{
new string[64];
new distance = GetPlayerDistanceFromPoint(playerid, MoneyBagPos[0], MoneyBagPos[1], MoneyBagPos[2]);
format(string, sizeof(string), "The MoneyBag is %i meters away", distance);
SendClientMessage(playerid, -1, string);
}
i am getting this errors
C:\DOCUME~1\SAIKUM~1\Desktop\Server\Gm\MONEYB~1.PW N(567) : error 017: undefined symbol "playerid"
C:\DOCUME~1\SAIKUM~1\Desktop\Server\Gm\MONEYB~1.PW N(567) : warning 213: tag mismatch
C:\DOCUME~1\SAIKUM~1\Desktop\Server\Gm\MONEYB~1.PW N(569) : error 017: undefined symbol "playerid"
C:\DOCUME~1\SAIKUM~1\Desktop\Server\Gm\MONEYB~1.PW N(580) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
my aim is to make a command that shows that how many meters the player is away from the pickup ot moneyag