What is wrong?
#8

Failure of ductile comands:
Lock/unlock
Код:
 else if ( !strcmp( result, "rakinti", true ) )
	    {
	        new
	            slot = CheckIfPlayerHasSpawnedVehicle(playerid);
	            
			if (slot < MAX_OWNABLE_VEHICLES)
			{
			    new
			        vehid = GetVehIdBySlot(playerid, slot);
			        
				if (vehid < MAX_VEHICLES)
				{
				    if (CheckPlayerDistanceToVehicle( 5.0, playerid, vehid ))
				    {
				        if (VehInfo[playerid][slot][vLock] < 1 )
				            return SendClientMessage( playerid, COLOR_GREY, "   Jūs neturite uћrakto.");
				    
				        if (SVehInfo[vehid][vLock] > 0)
				        { // Transporto priemonė yra uћrakinta
				            SVehInfo[vehid][vLock] = 0;
				            LockVehicleForPlayers(vehid, false);
				            ShowInfoText         (playerid, "~g~Transporto priemone atrakinta", 3000);
				        }
				        else
				        { // Transporto priemonė yra atrakinta
				            SVehInfo[vehid][vLock] = VehInfo[playerid][slot][vLock];
				            LockVehicleForPlayers(vehid, true);
				            ShowInfoText         ( playerid, "~r~Transporto priemone uzrakinta", 3000 );
				        }
				    }
				    else
						SendClientMessage( playerid, COLOR_GREY, "   Jūs neesate љalia savo transporto priemonės." );
				}
				else
				    SendClientMessage( playerid, COLOR_RED, "KLAIDA" );
			}
			else
			    SendClientMessage( playerid, COLOR_GREY, "   Jūs neturite iљsispawninę transporto priemonės." );
	    } else if ( !strcmp( result, "rakinti", true ) )
	    {
	        new
	            slot = CheckIfPlayerHasSpawnedVehicle(playerid);
	            
			if (slot < MAX_OWNABLE_VEHICLES)
			{
			    new
			        vehid = GetVehIdBySlot(playerid, slot);
			        
				if (vehid < MAX_VEHICLES)
				{
				    if (CheckPlayerDistanceToVehicle( 5.0, playerid, vehid ))
				    {
				        if (VehInfo[playerid][slot][vLock] < 1 )
				            return SendClientMessage( playerid, COLOR_GREY, "   Jūs neturite uћrakto.");
				    
				        if (SVehInfo[vehid][vLock] > 0)
				        { // Transporto priemonė yra uћrakinta
				            SVehInfo[vehid][vLock] = 0;
				            LockVehicleForPlayers(vehid, false);
				            ShowInfoText         (playerid, "~g~Transporto priemone atrakinta", 3000);
				        }
				        else
				        { // Transporto priemonė yra atrakinta
				            SVehInfo[vehid][vLock] = VehInfo[playerid][slot][vLock];
				            LockVehicleForPlayers(vehid, true);
				            ShowInfoText         ( playerid, "~r~Transporto priemone uzrakinta", 3000 );
				        }
				    }
				    else
						SendClientMessage( playerid, COLOR_GREY, "   Jūs neesate љalia savo transporto priemonės." );
				}
				else
				    SendClientMessage( playerid, COLOR_RED, "KLAIDA" );
			}
			else
			    SendClientMessage( playerid, COLOR_GREY, "   Jūs neturite iљsispawninę transporto priemonės." );
	    }
Reply


Messages In This Thread
What is wrong? - by gedas_lt - 06.07.2010, 14:45
Re: What is wrong? - by gedas_lt - 06.07.2010, 16:07
Re: What is wrong? - by gedas_lt - 07.07.2010, 07:12
Re: What is wrong? - by yoan103 - 07.07.2010, 07:21
Re: What is wrong? - by yoan103 - 07.07.2010, 07:24
Re: What is wrong? - by gedas_lt - 07.07.2010, 07:33
Re: What is wrong? - by yoan103 - 07.07.2010, 07:35
Re: What is wrong? - by gedas_lt - 07.07.2010, 07:37

Forum Jump:


Users browsing this thread: 1 Guest(s)