Error


Započeo .варнинг, Avgust 07, 2017, 12:25:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Los Cartos
Detaljan opis problema:Radio sam nove komande i pojavio mi se ovaj error iako taj deo skripte nisam ni pipao.
Dio skripte:
YCMD:zakaci(playerid,params[], help)
{
	if(IsPlayerConnected(playerid))
 	{
  		if(PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pClan] == 8)
    	{
     		if(ParkingAuta(GetPlayerVehicleID(playerid)))
        	{
         		if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
           		{
             		if(GetPlayerState(playerid)==2)
               		{
	                 	new Float:pX,Float:pY,Float:pZ;
	                  	GetPlayerPos(playerid,pX,pY,pZ);
	                   	new Float:vX,Float:vY,Float:vZ;
	                    new Found=0;
	                    new vid=0;
	                    while((vid<MAX_VOZILA)&&(!Found))
	                    {
                     		vid++;
                           	GetVehiclePos(vid,vX,vY,vZ);Ovo je ta linija na kojoj je error
                           	if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
                        	{
                         		Found=1;
                               	if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
                                {
                                	DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
                                }
                                else
                           		{
                               		AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
                           		}
                         	}
                   		}
                     	if(!Found)
                      	{
                       		SendClientMessage(playerid,0xFFFF00AA,"[LG:RP] Nema automobila u blizini.");
                        }
                  	}
                  	else
                  	{
                   		SendClientMessage(playerid, COLOR_GRAD2, "[LG:RP] Morate biti na mjestu vozaca.");
                     	return 1;
                  	}
               	}
               	else
               	{
                	SendClientMessage(playerid, COLOR_GRAD2, "[LG:RP] Morate biti u pauku da bi mogli ovo koristit");
                  	return 1;
               	}
          	}
            else
           	{
            	SendClientMessage(playerid, COLOR_GRAD2, "[LG:RP] Morate biti u vozilu da biste koristili ovu komandu.");
             	return 1;
            }
   		}
     	else
      	{
       		SendClientMessage(playerid,COLOR_GRAD2,"[LG:RP] Morate biti clan parking servisa da bi koristili ovu komandu.");
            return 1;
       	}
	}
 	return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): https://prnt.sc/g5cqx8
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

Ako nije bilo greske, a izgleda da i sada nema, vjerojatno nove komande remete tvoju definiciju floata

Nova komanda je /muzikazasve tako da.
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)