Szerző Téma: Textdraw  (Megtekintve 1120 alkalommal)

Textdraw
« Dátum: 2015. Március 23. - 16:15:17 »
0 Show voters
Sziasztok srácok!
Elkezdtem a textdraw készítéssel foglalkozni..
Megakadtam egy dolognál. Ugye egy infóbárat szeretnék csinálni. De valahogy
erre a két sorra:
 
    TextDrawSetString(Textdraw0, newtext);
    TextDrawShowForPlayer(playerid, Textdraw0);

 
Errort ír.. Még hozzá ezt:
 
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)

 
Mi lehet az oka? A válaszotokat köszönöm!
« Utoljára szerkesztve: 2015. Március 23. - 20:32:58 írta RusH. »

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Textdraw
« Válasz #1 Dátum: 2015. Március 23. - 16:37:22 »
0 Show voters
szerintem ezt így kéne
 
TextDrawSetString(playerid, Textdraw0); 

 
wiki: http://wiki.sa-mp.com/wiki/TextDrawSetString

Textdraw
« Válasz #2 Dátum: 2015. Március 23. - 16:45:07 »
0 Show voters
Idézetet írta: ZSOLTI99 date=1427125042\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"53434\" data-ipsquote-contentclass=\"forums_Topic
szerintem ezt így kéne
 
TextDrawSetString(playerid, Textdraw0); 

 
wiki: http://wiki.sa-mp.com/wiki/TextDrawSetString
 
Remek. Mostmár csak a másikkal van baja:D

Nem elérhető scripter01

  • 1035
  • Ex Moderálisan Globális
    • Profil megtekintése
Textdraw
« Válasz #3 Dátum: 2015. Március 23. - 17:07:28 »
0 Show voters

Textdraw
« Válasz #4 Dátum: 2015. Március 23. - 17:12:17 »
0 Show voters
Idézetet írta: Archer date=1427126848\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"53434\" data-ipsquote-contentclass=\"forums_Topic
http://wiki.sa-mp.com/wiki/TextDrawShowForPlayer
 
Ez mind szép és jó, de attól még nem jó. Ezek alapján csináltam

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Textdraw
« Válasz #5 Dátum: 2015. Március 23. - 17:30:54 »
0 Show voters
http://wiki.sa-mp.com/wiki/TextDrawShowForPlayer
Hasonlóan van meg oldva?
 
public OnPlayerConnect(playerid)
{
    new Text:textid = TextDrawCreate(100.0, 100.0, \"Welcome!\"); //ilyesmid van? new Text:textid =
    TextDrawShowForPlayer(playerid, textid);
}

 az lesz a legjobb ha bemásolod az egészet

Textdraw
« Válasz #6 Dátum: 2015. Március 23. - 19:36:37 »
0 Show voters
nekem ongamemodeinitnél van.

Nem elérhető ROOCK

  • 183
    • Profil megtekintése
Textdraw
« Válasz #7 Dátum: 2015. Március 27. - 08:29:24 »
0 Show voters
akkor pont az a baja h a gamemode-nál van mert ott nincs definiálva a playerid csinálj neki külön forvardal egy parancsot amibe definiálva van a playerid és tedd be a connect alá :)
pl
 

forward TD(playerid);
TD(playerid){
TextDrawShowForPlayer(playerid, textid);
}
public OnPlayerConnect(playerid)
{
TD(playerid);
}
« Utoljára szerkesztve: 2015. Március 27. - 08:31:00 írta ROOCK »

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Textdraw
« Válasz #8 Dátum: 2015. Március 27. - 13:13:14 »
0 Show voters
[mod]Ennek ott a kiemelt téma. zárok![/mod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal