Random spawns not working
#2

That's a horrible way to code..

Anyway, you've got two ; on the ResetPlayerWeapons(playerid) function.

pawn Код:
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;
}
Reply


Messages In This Thread
Random spawns not working - by DwayneMichael - 18.08.2016, 10:01
Re: Random spawns not working - by Luis- - 18.08.2016, 10:08
Re: Random spawns not working - by DwayneMichael - 18.08.2016, 10:10
Re: Random spawns not working - by Luis- - 18.08.2016, 10:11
Re: Random spawns not working - by DwayneMichael - 18.08.2016, 10:24
Re: Random spawns not working - by Luis- - 18.08.2016, 10:25
Re: Random spawns not working - by Sew_Sumi - 18.08.2016, 12:40
Re: Random spawns not working - by Marricio - 18.08.2016, 12:51
Re: Random spawns not working - by Sew_Sumi - 18.08.2016, 16:32

Forum Jump:


Users browsing this thread: 2 Guest(s)