Pomoc Checkpoint

Započeo countrylonja, Oktobar 28, 2009, 02:26:50 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Hi, imam prob sa ovim codom nemogu vise od 5 checkpointa napravit cim vise stavim odmah dodje Mismatch

stock playerLastCheckpoint[MAX_PLAYERS], Float:checkpointPos[][6] = { /* Schema x,y,z

public praxis(playerid)
{
   TakingLesson[playerid] = 1;
   CreateVehicle(405,1405.5630,-1774.8033,13.4219,90.7597,1,1,-1);
   SetPlayerCheckpoint(playerid, 1, checkpointPos[0][0], checkpointPos[0][1],
   checkpointPos[0][2], checkpointPos[0][3], checkpointPos[0][4],
   checkpointPos[0][5], SIZE_OF_CP);// number of arguments does not match with definition
   playerLastCheckpoint[playerid] = 0;

}
Poslednja Izmena: Oktobar 28, 2009, 02:28:17 PRE PODNE od countrylonja

zerocoolos

pa ti si noobina na kvadrat...
SetPlayerCheckpoint se sastoji od 5 parametara!!! a definiran je ovako:
(playerid,Float:x,Float:y,Float:z,Float:radius)
Znači to ti je funkcija za kreiranje JEDNOG checkpionta koji se kreira igracu(playerid), unosi se jos koordinata po x osi, koordinata po y osi, koordinata po z osi i polumjer cp-a.

A ovo sto si ti radio jos nisam vidio  :laugh:... Za pocetak nauci osnove pa onda idi nesto radit...

hehe pa da znam nebi vas pito za pomoc ;)   ali THX sad sam skonto ^^ naso sam jos jednu methodu ali cim to uradim onda dobijem erors o_O  morel se ovaj enum kroz nesto drugo da zamjeni on funkcijunise u Filterscriptu ali u GM ne :(

enum XYZR {
   Float:X,
   Float:Y,
   Float:Z,
   Float:R
}


new
   Checkpoints[11][XYZR] = {
     {-74.2252, -1128.7936, 1.6359, 6.0},
   {-89.2432, -1189.7782, 2.3241, 6.0},
   {-63.3734, -1588.5732, 3.1782, 6.0},
   {220.8943, -1393.5308, 52.1264, 6.0},
   {169.0361, -1356.8065, 69.8208, 6.0},
   {263.5524, -1341.0842, 53.7643, 6.0},
   {871.9646, -864.5255, 77.2742, 6.0},
   {935.7687, -835.7352, 94.4455, 6.0},
   {1496.5879, -698.0237, 94.5207, 6.0},
   {1001.1724,   -935.0218, 41.9509, 6.0},
   {-546.9002,   -488.6077, 25.2961, 6.0} // 11


Erors:
xgf.pwn(6012) : warning 203: symbol is never used: "X"
xgf.pwn(6012) : warning 203: symbol is never used: "Y"
xgf.pwn(6012) : warning 203: symbol is never used: "Z"
(6013) : error 035: argument type mismatch (argument 2)

lol napisao ti je kako da stavis ne xyz nego

(playerid,Float:x,Float:y,Float:z,Float:radius)

======ஜ۩۞۩ஜ======
â—,,███â–"â–' FucK oFFâ–'â–"███►
======ஜ۩۞۩ஜ======



:D Fala kurcu imamo i nekih pametnih ljudi na forumu :D

Posjetite:
TUTORIALS 4 ALL NA HRVATSKOM









e sad sam drugacije uradjo ^^ ali kad udjem u checkpint nista se nedesi on ostane isti :(

trebam nesto u OnPlayerEnterCheckpoint napisat ali neznam sta :(

new Float:DrivingSchoolCP[4][3] =
{
    {-2047.318237, -78.493286, 35.043674}, // Starting of the first test's checkpoints
   {-2020.431396, -72.462600, 35.046836},
   {-2004.230468, -63.067325, 35.043403},
   {-2004.557861, 92.230476, 27.414079},
};



public praxis(playerid)
{
   TakingLesson[playerid] = 1;
   CreateVehicle(405,1405.5630,-1774.8033,13.4219,90.7597,1,1,-1);
   DisablePlayerCheckpoint(playerid);
   SetPlayerCheckpoint(playerid,DrivingSchoolCP[DMVCP[playerid]+1][0],DrivingSchoolCP[DMVCP[playerid]+1][1],DrivingSchoolCP[DMVCP[playerid]+1][2],5.0);
    DMVCP[playerid]++;
}

else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1854.2563,846.4569,35.0569, 10.0); }


brobaj ovako staviti ... samo svoje kordinate

======ஜ۩۞۩ஜ======
â—,,███â–"â–' FucK oFFâ–'â–"███►
======ஜ۩۞۩ஜ======



:D Fala kurcu imamo i nekih pametnih ljudi na forumu :D

Posjetite:
TUTORIALS 4 ALL NA HRVATSKOM