MySQL Dealership bug(TEST COMMAND) -
KiM0Ro - 30.08.2014
Hi as my title say,the dealership command,Test have a bug,it don't happen nothing...i want to put the player in the car and after 30 seconds to expire the time and to teleport again at the dealership,but this don't happen? Any helps?
CODES:
if(clickedid == ButonTesteaza[playerid])
{
SetTimerEx("TimpScurs",30 * 1000,0,"d",playerid);
SetVehicleVirtualWorld(IDmasina[playerid],0);
SendClientMessage(playerid, -1, "test");
PutPlayerInVehicle(playerid,IDmasina[playerid],0);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
TextDrawHideForPlayer(playerid,Linie[playerid]);
TextDrawHideForPlayer(playerid,ButonInapoi[playerid]);
TextDrawHideForPlayer(playerid,ButonUrmator[playerid]);
TextDrawHideForPlayer(playerid,ButonTesteaza[playerid]);
TextDrawHideForPlayer(playerid,ButonCumpara[playerid]);
TextDrawHideForPlayer(playerid,ButonAnuleaza[playerid]);
TextDrawHideForPlayer(playerid,DealerMasina[playerid]);
TextDrawHideForPlayer(playerid,DealerPret[playerid]);
CancelSelectTextDraw(playerid);
}
function TimpScurs(playerid)
{
DestroyVehicle(IDmasina[playerid]);
SetPlayerPos(playerid,2131.9553,-1149.4324,24.2693);
}
Re: MySQL Dealership bug(TEST COMMAND) -
Thogy - 30.08.2014
You can try replace function TimpScurs(playerid) by forward TimpScurs(playerid);
public TimpScurs(playerid)
{
...
Re: MySQL Dealership bug(TEST COMMAND) -
KiM0Ro - 30.08.2014
Nop sorry it doesn't work...anyone?
Re: MySQL Dealership bug(TEST COMMAND) -
KiM0Ro - 30.08.2014
UP,please help?