U vezi TD-ova

Započeo LukaJozo, Novembar 22, 2017, 20:06:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Pitanje: Napravio sam TD-ove BRZINOMETRA e sada napravio sam jedan TD koji treba sadrzavati ime auta ili motora u koje si sjeo, i posto sam ja pocetnik jos u skriptanju ne znam kako da napravim da se td s imenom replaca s tim imenom auta u kojega sam sjeo.
Komentar: Moze li savjet.
Unaprijed Hvala.
Balkan School RolePlay
samp.balkan-school.com:7778

[pawn]PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
Eto primjer.

Citat: Slade poslato Novembar 22, 2017, 20:35:08 POSLE PODNE
[pawn]PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
Eto primjer.
Samo bih jos dodao da to stavis pod
public OnPlayerStateChange(playerid, newstate, oldstate)
{
      if(newstate == PLAYER_STATE_DRIVER) { PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid))); }
      return 1;
}
           
   

EDIT: evo ti i za ime i za preview, samo sklopi kako je kod tebe u skripti https://pastebin.com/NUys3R0d
Poslednja Izmena: Novembar 22, 2017, 20:46:16 POSLE PODNE od Shomy Script

Facebook - Klik



Citat: Shomy Script poslato Novembar 22, 2017, 20:41:09 POSLE PODNE
Citat: Slade poslato Novembar 22, 2017, 20:35:08 POSLE PODNE
[pawn]PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
Eto primjer.
Samo bih jos dodao da to stavis pod
public OnPlayerStateChange(playerid, newstate, oldstate)
{
      if(newstate == PLAYER_STATE_DRIVER) { PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid))); }
      return 1;
}
           
   

Citat: Slade poslato Novembar 22, 2017, 20:35:08 POSLE PODNE
[pawn]PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
Eto primjer.
Hvala ali nisam mislio na Prewiev model vec sam mislio, naprimjer napravim td infernus i udjem sada u npr. Club i onda pise Club kontate?
Balkan School RolePlay
samp.balkan-school.com:7778

Citat: #Jozo poslato Novembar 22, 2017, 20:45:12 POSLE PODNE
Citat: Shomy Script poslato Novembar 22, 2017, 20:41:09 POSLE PODNE
Citat: Slade poslato Novembar 22, 2017, 20:35:08 POSLE PODNE
[pawn]PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
Eto primjer.
Samo bih jos dodao da to stavis pod
public OnPlayerStateChange(playerid, newstate, oldstate)
{
      if(newstate == PLAYER_STATE_DRIVER) { PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid))); }
      return 1;
}
           
   

Citat: Slade poslato Novembar 22, 2017, 20:35:08 POSLE PODNE
[pawn]PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
Eto primjer.
Hvala ali nisam mislio na Prewiev model vec sam mislio, naprimjer napravim td infernus i udjem sada u npr. Club i onda pise Club kontate?
https://pastebin.com/NUys3R0d

Facebook - Klik



Iam pitanje a kad udje igrac u vozilo jel mu se pomocu toga sto si poslao @Shomy Script  da se pojavi slika vozila bilo kojeg

Eto ti gore primjer, samo ima jedna zamjerka, ovako ispisuj u formatiranju:
[pawn]format(model,sizeof(model), "%s", GetVehicleFriendlyName(GetVehicleModel(GetPlayerVehicleID(playerid))-400));[/pawn]

Citat: Shomy Script poslato Novembar 22, 2017, 20:46:44 POSLE PODNE
Citat: #Jozo poslato Novembar 22, 2017, 20:45:12 POSLE PODNE
Citat: Shomy Script poslato Novembar 22, 2017, 20:41:09 POSLE PODNE
Citat: Slade poslato Novembar 22, 2017, 20:35:08 POSLE PODNE
[pawn]PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
Eto primjer.
Samo bih jos dodao da to stavis pod
public OnPlayerStateChange(playerid, newstate, oldstate)
{
      if(newstate == PLAYER_STATE_DRIVER) { PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid))); }
      return 1;
}
           
   

Citat: Slade poslato Novembar 22, 2017, 20:35:08 POSLE PODNE
[pawn]PlayerTextDrawSetPreviewModel(playerid, Ime_Textdrawa, GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
Eto primjer.
Hvala ali nisam mislio na Prewiev model vec sam mislio, naprimjer napravim td infernus i udjem sada u npr. Club i onda pise Club kontate?
https://pastebin.com/NUys3R0d
Hvala ti pokusati cu pa ti javim :D
Balkan School RolePlay
samp.balkan-school.com:7778

Imam 2 Errora
D:\UNDERPONIT\NISTA BITNO\Underpoint RolePlay 0.3x\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(15170) : error 035: argument type mismatch (argument 1)
D:\UNDERPONIT\NISTA BITNO\Underpoint RolePlay 0.3x\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(15171) : error 035: argument type mismatch (argument 2)

U ovim redovima
PlayerTextDrawSetString(BRZINOMETAR[4], model);
PlayerTextDrawSetPreviewModel(playerid, BRZINOMETAR[9], GetVehicleModel(GetPlayerVehicleID(playerid)));

Balkan School RolePlay
samp.balkan-school.com:7778

Citat: #Jozo poslato Novembar 22, 2017, 21:08:29 POSLE PODNE
Imam 2 Errora
D:\UNDERPONIT\NISTA BITNO\Underpoint RolePlay 0.3x\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(15170) : error 035: argument type mismatch (argument 1)
D:\UNDERPONIT\NISTA BITNO\Underpoint RolePlay 0.3x\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(15171) : error 035: argument type mismatch (argument 2)

U ovim redovima
PlayerTextDrawSetString(BRZINOMETAR[4], model);
PlayerTextDrawSetPreviewModel(playerid, BRZINOMETAR[9], GetVehicleModel(GetPlayerVehicleID(playerid)));

Posto su player textdraws, moras staviti [playerid], znaci BRZINOMETAR[9][playerid]

Facebook - Klik



Nista rjesio sam samo sam trebao dodati Pored Brzinometar[playerid] Hvala :D
LOCK
Balkan School RolePlay
samp.balkan-school.com:7778