Jump to content
  • 0

pomoc Čas čekání na CP


Alex-game

Dotaz

Zdravím potřebuji pomoc 
potřebuju aby řidič autobusu musel na cc 3 sekundy zastavit na zobrazeném cp a pak se zase mohl rozjet na další 

provizorně zde je kód je tam příkaz spouštějcí cp a první cp  

 

 

 

if (strcmp("/test", cmdtext, true, 10) == 0)
{
SetPlayerCheckpoint(playerid, 2127.3000, 1440.4181, 10.8203, 3.0);
return 1;
}
return 0;
}



public OnPlayerEnterCheckpoint(playerid)
{
//-----------------------Autobusové linky----------------------------//
switch(cp[playerid])
{
case 0: // a pokracujeme
{
DisablePlayerCheckpoint(playerid);
cp[playerid]++;
SetPlayerCheckpoint(playerid, 1724.1262,1362.4023,10.4922, 3.0);

}

 

atd :-)

case 1 ...................

 

 

 

 

děkuji za odpověd :-) ps: jméno z realné povolaní změněno na RJSA (Realy job SA)

Link to comment
Share on other sites

17 odpovědí na tuto otázku

Recommended Posts

  • 0

Do OnPlayerEnterCheckpoint pridaj :

TogglePlayerControllable(playerid,0);

Pod to :

SetTimerEx("CheckPointT",3000,0,"i",playerid);

Potom hore niekam do módu daj..

forward CheckPointT(playerid);

Pod všetky publicy si pridaj :


public CheckPointT(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}
 
 
Link to comment
Share on other sites

  • 0

 

Do OnPlayerEnterCheckpoint pridaj :

TogglePlayerControllable(playerid,0);

Pod to :

SetTimerEx("CheckPointT",3000,0,"i",playerid);

Potom hore niekam do módu daj..

forward CheckPointT(playerid);

Pod všetky publicy si pridaj :


public CheckPointT(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}

error :( http://ctrlv.cz/KlZx

Link to comment
Share on other sites

  • 0

 

Daj sem riadok číslo 324.

A očividne si hore do módu nedal :

forward CheckPointT(playerid);

je omylem jsem na tom řádku nechal 2x ; takže už to funguje 

jen abych nezakládal nové téma nevíš si rady s tímto už se to jeden pawner snažil odstranit ale nešlo mu to :(

C:\Users\Alex\OneDrive\rp.pwn(499) : warning 203: symbol is never used: "ret_memcpy"

499 je první řádek za kodem

TogglePlayerControllable ? a ked nanho niekto bude odrazu strielat? :d

část kde budou autobusy jezdit bude mírova pokud ne postarám se o to gangy budou v no počkej až to napíšu do sekce módy tam to bude podrobně popsané :-)

Link to comment
Share on other sites

  • 0

Musí to tam byť. Ale aj tak to nič neznamená, len ťa varuje že si to nevyužil ale je to vytvorené.

Klikni CTRL + F a napíš tam "ret_memcpy" a keď to nájde, zmaž to.

Link to comment
Share on other sites

  • 0

Musí to tam byť. Ale aj tak to nič neznamená, len ťa varuje že si to nevyužil ale je to vytvorené.

Klikni CTRL + F a napíš tam "ret_memcpy" a keď to nájde, zmaž to.

no právě nic to nenajde :/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...