[POMOC] OnPlayerUpdate


Započeo [NV]Ricken, April 04, 2013, 23:34:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: od 0.
Detaljan opis problema: Pa ovako callback OnPlayerUpdate mi ne radi u modu dok radi u filterscriptama. Da li netko zna do cega bi moglo biti ? I da li netko imao isti ovakav problem ?
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
New Vision RPG/DM
Forum: www.nv-samp.com
SA:MP IP: 51.254.86.94 :8221
NV TeamSpeak3: 151.80.174.132:9972


Citat: David (Sabljak) A.k.A SABO(T) poslato April 05, 2013, 12:44:09 POSLE PODNE
jesi siguran da ti se ne mjesaju sa GMom i FSom odjednom?
Prvi put cujem da se moze mjesat gm i fs...
Od filterscripti samo imam JunkBuster.
New Vision RPG/DM
Forum: www.nv-samp.com
SA:MP IP: 51.254.86.94 :8221
NV TeamSpeak3: 151.80.174.132:9972


Citat: David (Sabljak) A.k.A SABO(T) poslato April 05, 2013, 14:23:21 POSLE PODNE
Uvijek se mjesa :) dialozi pogotovo
Znam za to nego ja mislio na nesto drugo.
New Vision RPG/DM
Forum: www.nv-samp.com
SA:MP IP: 51.254.86.94 :8221
NV TeamSpeak3: 151.80.174.132:9972


Postaj OPU callback iz GM-a.

Last nick: Paradox

Citat: Joey_ poslato April 05, 2013, 20:56:02 POSLE PODNE
Postaj OPU callback iz GM-a.
public OnPlayerUpdate(playerid)
{
    print("onplayerupdate pozvan!");
 	if(BiraVozilo[playerid] > 0)
	{
     	new Keys,ud,lr;
    	GetPlayerKeys(playerid,Keys,ud,lr);
        if(lr > 0)
        {
            if(BiraVozilo[playerid] == GLEDA_SPORTSKA)
            {
		        Autosalon[playerid]++;
		        if(Autosalon[playerid] >= sizeof(COSVozila)) Autosalon[playerid] = 0;
		 		DestroyVehicle(IzlozbenoVozilo[playerid]);
		   		IzlozbenoVozilo[playerid] = CreateVehicle(COSVozila[Autosalon[playerid]][0], 535.7714, -1280.2086, 11.8584, 153.5363, 1,1,100);
			    SetVehicleVirtualWorld(IzlozbenoVozilo[playerid], GetPlayerVirtualWorld(playerid));
			    new str1[64], str2[128];
    		    format(str1, 64, "Cena: %d$",COSVozila[Autosalon[playerid]][1]);
				format(str2, 128, "Ime Vozila: %s",VehicleNames[COSVozila[Autosalon[playerid]][0] - 400]);

				PlayerTextDrawSetString(playerid,Autosalon4[playerid], str1);
				PlayerTextDrawSetString(playerid,Autosalon2[playerid], str2);

				hBiraModel[playerid] = COSVozila[Autosalon[playerid]][0];
				hBiraCenaKes[playerid] = COSVozila[Autosalon[playerid]][1];
				PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

				CheckSell(playerid,IzlozbenoVozilo[playerid]);
				UpdateModel(playerid,hBiraModel[playerid]);
			}
        }
        if(lr < 0)
		{
            if(BiraVozilo[playerid] == GLEDA_SPORTSKA)
            {
			    Autosalon[playerid]--;
		        if(Autosalon[playerid] < 0) Autosalon[playerid] = sizeof(COSVozila)-1;
		 		DestroyVehicle(IzlozbenoVozilo[playerid]);
		   		IzlozbenoVozilo[playerid] = CreateVehicle(COSVozila[Autosalon[playerid]][0], 535.7714, -1280.2086, 11.8584, 153.5363, 1,1,100);
			    SetVehicleVirtualWorld(IzlozbenoVozilo[playerid], GetPlayerVirtualWorld(playerid));
			    new str1[64], str2[128];
    		    format(str1, 64, "Cena: %d$",COSVozila[Autosalon[playerid]][1]);
				format(str2, 128, "Ime Vozila: %s",VehicleNames[COSVozila[Autosalon[playerid]][0] - 400]);

				PlayerTextDrawSetString(playerid,Autosalon4[playerid], str1);
				PlayerTextDrawSetString(playerid,Autosalon2[playerid], str2);

				hBiraModel[playerid] = COSVozila[Autosalon[playerid]][0];
				hBiraCenaKes[playerid] = COSVozila[Autosalon[playerid]][1];
				PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

				CheckSell(playerid,IzlozbenoVozilo[playerid]);
				UpdateModel(playerid,hBiraModel[playerid]);
			}
		}
	}
	return 1;
}
New Vision RPG/DM
Forum: www.nv-samp.com
SA:MP IP: 51.254.86.94 :8221
NV TeamSpeak3: 151.80.174.132:9972


Sry za DP!
Moze ovdje lock.
Rijesio sam problem. Problem je bio zbog include fixes.
New Vision RPG/DM
Forum: www.nv-samp.com
SA:MP IP: 51.254.86.94 :8221
NV TeamSpeak3: 151.80.174.132:9972


Blaeks

*

Madmen

lock na zahtev autora

i jos nesto, prijateljski savet, ostavi se junk bustera, jer kasnije ako ga zelis izbaciti neces moci..