problem with zcmd and vehicle respawn.
#1

Hey!

I have 2 problems.

So, first problem with zcmd command. Code:

PHP код:
CMD:remontuoti(playerid)
{
    if(
pDT[playerid][pMasina] == -1) return SendClientMessage(playeridRED,"* ** You didn't have a car!");
    new 
pDT[playerid][pMasina],// pMasina means player Car
        
kaina ShopVehicles[v][Price]/2,
        
s128 ];
    if(
vDT[v][death])
    {
        
format(s,sizeof(s),"{FFFFFF}Jūsų transporto priemonės taisymas kainuos{FF0000}%i{FFFFFF}LT\nAr tikrai norite susiremontuoti transportą?",kaina);
        
ShowPlayerDialog(playerid40DIALOG_STYLE_MSGBOX,"Transporto remontas",s,"Remontuoti","Atљaukti");
    }
    else 
SendClientMessage(playeridRED,"* ** Car isn't death!");
    return 
1;

When i use this command in game, command didn't work.. Just "Unknown command"...

Second problem with vehicle's respawn.
I use this code in timer
PHP код:
for(new 0MAX_VEHICLESv++)
       {
        if(!
IsAnyPlayerInVehicle(v))
        {
              if(
vDT[v][nuoma] || vDT[v][VMv] || vDT[v][VMvm] || vDT[v][parduodama]) SetVehicleToRespawn(v);
        }
    } 
And when timer works, the server freezes, and about 15 seconds later unfreezes.. Anybody know where is the problem ?

p.s sorry for my bad english
Reply


Messages In This Thread
problem with zcmd and vehicle respawn. - by WuPoR - 05.03.2014, 18:06
Re: problem with zcmd and vehicle respawn. - by Konstantinos - 05.03.2014, 18:25
Re: problem with zcmd and vehicle respawn. - by WuPoR - 05.03.2014, 18:39
Re: problem with zcmd and vehicle respawn. - by Konstantinos - 05.03.2014, 18:54
Re: problem with zcmd and vehicle respawn. - by XK - 05.03.2014, 19:20
Re: problem with zcmd and vehicle respawn. - by WuPoR - 06.03.2014, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)