27.03.2016, 04:06
(
Последний раз редактировалось Beasthian; 27.03.2016 в 05:04.
)
The thing is im not that good with pawn..
Edit: I followed what you told me but i get this error
NVM I fixed it. you didn't need new rpos=..etc
just define needed to define "rand"
ill test it out ;p
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; }
just define needed to define "rand"
ill test it out ;p