Aim Training system. Need help rep +
#3

The thing is im not that good with pawn..

Edit: I followed what you told me but i get this error

Код:
D:Desktop\Pawn Scripts\AimTraining.pwn(69) : error 017: undefined symbol "rand"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    new rpos = rand(7);
	MovePlayerObject(playerid,TrainingObject[playerid],TrainingObjectMoving[rpos][0],
	TrainingObjectMoving[rpos][1],TrainingObjectMoving[rpos][2], 1.0);
    if(hittype == BULLET_HIT_TYPE_PLAYER_OBJECT)
        if(IsValidPlayerObject(playerid, hitid))
        PlayerPlaySound(playerid, 1132, 0, 0, 0);
	return 1;
}
NVM I fixed it. you didn't need new rpos=..etc

just define needed to define "rand"

ill test it out ;p
Reply


Messages In This Thread
Aim Training system. Need help rep + - by Beasthian - 19.03.2016, 00:47
Re: Aim Training system. Need help rep + - by SamJust - 19.03.2016, 04:08
Re: Aim Training system. Need help rep + - by Beasthian - 27.03.2016, 04:06

Forum Jump:


Users browsing this thread: 1 Guest(s)