[Ajuda] Checkpoints randфmicos
#2

SetPlayerCheckpoint(playerid, Float, Float:y, Float:z, Floatize)

Vocк colocou 12 parвmetros, mas a funзгo usa 5 parвmetros, a array vai de 0 a 2, e contйm 10 linhas (0 a 9), e vocк colocou de 0 a 9. Olhe:

pawn Код:
new Float:Cargas[10][3] = {
   // 0 ( X ),   1 (Y ),    2 ( Z )
    {-2041.2926,-2386.7451,30.1984}, // Linha 0 (1)
    {-1571.7614,-2733.3157,48.1070}, // Linha 1 (2)
    {-1656.7499,-2240.2173,31.2983}, // Linha 2 (3)
    {21.9379,-2648.6987,40.0474}, // Linha 3 (4)
    {-23.3117,-2506.0486,36.2155}, // Linha 4 (5)
    {-1085.3257,-1645.5614,75.9392}, // Linha 5 (6)
    {-2023.5060,157.5564,28.4007}, // Linha 6 (7)
    {-2791.1409,-444.5565,7.2820}, // Linha 7 (8)
    {-1705.8510,397.4526,6.7311}, // Linha 8 (9)
    {-1881.1149,1388.2993,6.7540} // Linha 9 (10)
};
Entгo usando estas coordenadas:
pawn Код:
new rand = random(sizeof(Cargas));
SetPlayerPos(playerid, Cargas[rand][0], Cargas[rand][1], Cargas[rand][2]);
Reply


Messages In This Thread
Checkpoints randфmicos - by RafaelOsio - 11.01.2015, 23:54
Re: Checkpoints randфmicos - by MultiKill - 12.01.2015, 00:11
Re: Checkpoints randфmicos - by RafaelOsio - 12.01.2015, 00:33
Re: Checkpoints randфmicos - by MultiKill - 12.01.2015, 01:02
Re: Checkpoints randфmicos - by RafaelOsio - 12.01.2015, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)