[pomoc]neonke


Započeo [Euro Samp]Shadow, Februar 07, 2014, 16:34:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:NL editovanu
Detaljan opis problema:napravio sam system za neonke da se i sprema u bazu i to i napravio sam da ucita i napravio sam cmd bzv samo da vidim el mi ucita broj neonki i ucita broj ali nece postaviti neonku
Dio skripte:
    case THREAD_UCITAJAUTOMOBIL:
	    {
	        mysql_store_result();
	        new linija[255];
	        if(mysql_num_rows() == 1)
	        {
	            AutomobilZauzet[extraid] = 1;
	            if(mysql_fetch_row(linija))
	            {
	                new k, x;
			        sscanf(linija, "p<|>iiffffiiiiiiiiiiiiiiiis[35]s[35]is[65]iiiiiiiiiiiiiiiiiii",
					k, VInfo[extraid][hModel], VInfo[extraid][hPozX], VInfo[extraid][hPozY], VInfo[extraid][hPozZ], VInfo[extraid][hPozA], VInfo[extraid][hPaintJob], VInfo[extraid][hKomponenta1], VInfo[extraid][hKomponenta2],
					VInfo[extraid][hKomponenta3], VInfo[extraid][hKomponenta4], VInfo[extraid][hKomponenta5], VInfo[extraid][hKomponenta6], VInfo[extraid][hKomponenta7], VInfo[extraid][hKomponenta8],
					VInfo[extraid][hKomponenta9], VInfo[extraid][hKomponenta10], VInfo[extraid][hKomponenta11], VInfo[extraid][hKomponenta12], VInfo[extraid][hKomponenta13], VInfo[extraid][hBoja1], VInfo[extraid][hBoja2],
					VInfo[extraid][hVlasnik], VInfo[extraid][hOpis],VInfo[extraid][hImaVlasnika], VInfo[extraid][hTablice], VInfo[extraid][hck], VInfo[extraid][hcg], VInfo[extraid][hvw], VInfo[extraid][hent],
					VInfo[extraid][hoDroga], VInfo[extraid][hoOruzje1], VInfo[extraid][hoMunicija1], VInfo[extraid][hoOruzje2], VInfo[extraid][hoMunicija2], VInfo[extraid][hoOruzje3], VInfo[extraid][hoMunicija3],
					VInfo[extraid][hAlarm], VInfo[extraid][hProdat], VInfo[extraid][hZakljucan], VInfo[extraid][NeonkeID], x);
					if(VInfo[extraid][hProdat] == 0) VInfo[extraid][ownedvehicle] = CreateVehicle_H(VInfo[extraid][hModel], 11999.0+random(10000), 11999.0+random(10000), 0.0, 0.0, 0, 0, 1000);
					new string[55];
					if(VInfo[extraid][NeonkeID] == 1)
	                {
	                SetPVarInt(extraid, "neon", 1);
                    SetPVarInt(extraid, "blue", CreateObject(18648,0,0,0,0,0,0));
                    SetPVarInt(extraid, "blue1", CreateObject(18648,0,0,0,0,0,0));
                    AttachObjectToVehicle(GetPVarInt(extraid, "blue"), GetPlayerVehicleID(extraid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(extraid, "blue1"), GetPlayerVehicleID(extraid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                	}
                	if(VInfo[extraid][NeonkeID] == 2)
                	{
                    SetPVarInt(extraid, "neon", 1);
                    SetPVarInt(extraid, "green", CreateObject(18649,0,0,0,0,0,0));
                    SetPVarInt(extraid, "green1", CreateObject(18649,0,0,0,0,0,0));
                    AttachObjectToVehicle(GetPVarInt(extraid, "green"), GetPlayerVehicleID(extraid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(extraid, "green1"), GetPlayerVehicleID(extraid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                	}
                	if(VInfo[extraid][NeonkeID] == 3)
                	{
                    SetPVarInt(extraid, "neon", 1);
                    SetPVarInt(extraid, "yellow", CreateObject(18650,0,0,0,0,0,0));
                    SetPVarInt(extraid, "yellow1", CreateObject(18650,0,0,0,0,0,0));
                    AttachObjectToVehicle(GetPVarInt(extraid, "yellow"), GetPlayerVehicleID(extraid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(extraid, "yellow1"), GetPlayerVehicleID(extraid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                	}
                	if(VInfo[extraid][NeonkeID] == 4)
                	{
                    SetPVarInt(extraid, "neon", 1);
                    SetPVarInt(extraid, "white", CreateObject(18652,0,0,0,0,0,0));
                    SetPVarInt(extraid, "white1", CreateObject(18652,0,0,0,0,0,0));
                    AttachObjectToVehicle(GetPVarInt(extraid, "white"), GetPlayerVehicleID(extraid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(extraid, "white1"), GetPlayerVehicleID(extraid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                	}
                	if(VInfo[extraid][NeonkeID] == 5)
                	{
                    SetPVarInt(extraid, "neon", 1);
                    SetPVarInt(extraid, "pink", CreateObject(18651,0,0,0,0,0,0));
                    SetPVarInt(extraid, "pink1", CreateObject(18651,0,0,0,0,0,0));
                    AttachObjectToVehicle(GetPVarInt(extraid, "pink"), GetPlayerVehicleID(extraid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(extraid, "pink1"), GetPlayerVehicleID(extraid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                	}
                	if(VInfo[extraid][NeonkeID] == 6)
                	{
                    DestroyObject(GetPVarInt(extraid, "blue"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "blue1"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "green"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "green1"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "yellow"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "yellow1"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "white"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "white1"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "pink"));
                    DeletePVar(extraid, "neon");
                    DestroyObject(GetPVarInt(extraid, "pink1"));
                    DeletePVar(extraid, "neon");
                	}
	                mysql_fetch_field_row(string, "NeonkeID"); VInfo[extraid][NeonkeID] = strval(string);
	            }
			}
			mysql_free_result();
	    }

Neke slike/video za lakse dobivanje pomoci(neobavezno):