18.08.2016, 10:01
I've tried to make a player spawn in randomized positions when he uses a command but unfortunately, it's not spawning him to the correct location.
Code:-
Could anyone help? This spawns me in a totally different area even though the position I set is the correct one, Please help; Thankyou.
Also this error;
Line 412 is New float:area51 as shown above
Code:-
Код:
new Float:area51[4][4] = { {262.3471,1470.6333,10.580,89.3090}, {219.5900,1431.0100,10.5800,273.5500}, {246.3904,1361.7498,23.3703,5.0454}, {210.0943,1344.1219,10.5859,0.9721}};
Код:
CMD:area51(playerid,params[]){ new randomize=random(sizeof(area51)); SetPlayerPos(playerid, area51[randomize][0],area51[randomize][1],area51[randomize][2]); SetPlayerFacingAngle(playerid, area51[randomize][3]); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid,100.0); ResetPlayerWeapons(playerid);; return 1;}
Also this error;
Код:
C:\Users\Michael\Desktop\My GM\gamemodes\Stunt.pwn(412) : error 020: invalid symbol name ""