[Ajuda] criar random de floats e strings...
#2

Explica melhor como isso vai funcionar, porque eu acho que tu criou a variбvel de uma forma errada...

Exemplo:
pawn Code:
new Float: gRandomVar[][] =
{
    {x, y, z},
    {x1, y1, z1},
    {x2, y2, z2}
};

stock PWN_RandomPos(pId)
{
    new rand = random(3);
   
    SetPlayerPos(pId, gRandomVar[rand][0], gRandomVar[rand][1], gRandomVar[rand][2]);
}
Reply


Messages In This Thread
criar random de floats e strings... - by darkxdll - 20.07.2013, 14:53
Re: criar random de floats e strings... - by WLSF - 20.07.2013, 15:02
Re: criar random de floats e strings... - by darkxdll - 20.07.2013, 15:33
Re: criar random de floats e strings... - by WLSF - 20.07.2013, 15:37
Re: criar random de floats e strings... - by Don_Speed - 20.07.2013, 15:47
Re: criar random de floats e strings... - by darkxdll - 20.07.2013, 16:17

Forum Jump:


Users browsing this thread: 2 Guest(s)