05.03.2014, 18:06
Hey!
I have 2 problems.
So, first problem with zcmd command. Code:
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
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
I have 2 problems.
So, first problem with zcmd command. Code:
PHP код:
CMD:remontuoti(playerid)
{
if(pDT[playerid][pMasina] == -1) return SendClientMessage(playerid, RED,"* ** You didn't have a car!");
new v = pDT[playerid][pMasina],// pMasina means player Car
kaina = ShopVehicles[v][Price]/2,
s[ 128 ];
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(playerid, 40, DIALOG_STYLE_MSGBOX,"Transporto remontas",s,"Remontuoti","Atљaukti");
}
else SendClientMessage(playerid, RED,"* ** Car isn't death!");
return 1;
}
Second problem with vehicle's respawn.
I use this code in timer
PHP код:
for(new v = 0; v < MAX_VEHICLES; v++)
{
if(!IsAnyPlayerInVehicle(v))
{
if(vDT[v][nuoma] || vDT[v][VMv] || vDT[v][VMvm] || vDT[v][parduodama]) SetVehicleToRespawn(v);
}
}
p.s sorry for my bad english