Lurk 0 Odesláno: 4. Prosinec, 2012 Share Odesláno: 4. Prosinec, 2012 Mám problém s vyvoláním stocku HideInfo. Při zadání ShowInfo(playerid,"Ahoj",7); se mi zpráva zobrazí ale již nezmizí. Přidal jsem si tam SCMTA a zjistil jsem ze stock HideInfo se nevyvolal. Nevíte v čem je chyba? stock ShowInfo(playerid, text[], time=5) { TextDrawShowForPlayer(playerid, Textdraw[playerid][sub]); TextDrawSetString(Textdraw[playerid][sub], text); SetTimerEx("HideInfo", 1000*time, 0, "i", playerid); return 0; } stock HideInfo(playerid){ TextDrawHideForPlayer(playerid, Textdraw[playerid][sub]); return 1; } Link to comment Share on other sites More sharing options...
0 xbliqx 21 Odesláno: 4. Prosinec, 2012 Share Odesláno: 4. Prosinec, 2012 Mám problém s vyvoláním stocku HideInfo. Při zadání ShowInfo(playerid,"Ahoj",7); se mi zpráva zobrazí ale již nezmizí. Přidal jsem si tam SCMTA a zjistil jsem ze stock HideInfo se nevyvolal. Nevíte v čem je chyba? stock ShowInfo(playerid, text[], time=5) { TextDrawShowForPlayer(playerid, Textdraw[playerid][sub]); TextDrawSetString(Textdraw[playerid][sub], text); SetTimerEx("HideInfo", 1000*time, 0, "i", playerid); return 0; } stock HideInfo(playerid){ TextDrawHideForPlayer(playerid, Textdraw[playerid][sub]); return 1; } To druhé je public forward HideInfo(playerid); public HideInfo(playerid) { TextDrawHideForPlayer(playerid, Textdraw[playerid][sub]); return 1; } 1 Link to comment Share on other sites More sharing options...
0 GAMELASTERツ 73 Odesláno: 4. Prosinec, 2012 Share Odesláno: 4. Prosinec, 2012 proc vlastne vyuzivas TextDrawCreate... Potom sa to pletie.. Preto radim pouzivat funkciu CreatePlayerTextDraw Link to comment Share on other sites More sharing options...
0 xbliqx 21 Odesláno: 4. Prosinec, 2012 Share Odesláno: 4. Prosinec, 2012 proc vlastne vyuzivas TextDrawCreate... Potom sa to pletie.. Preto radim pouzivat funkciu CreatePlayerTextDraw A kde napísal, že využíva TextDrawCreate? Link to comment Share on other sites More sharing options...
0 Lurk 0 Odesláno: 4. Prosinec, 2012 Author Share Odesláno: 4. Prosinec, 2012 Děkuji za pomoc, funguje :-) Link to comment Share on other sites More sharing options...
0 xbliqx 21 Odesláno: 4. Prosinec, 2012 Share Odesláno: 4. Prosinec, 2012 Logika vieš, keď nepoužíva funkcie ako npr. PlayerTextDrawSetString a PlayerTextDrawShow ale TextDrawSetString tak je jasné že používa globálne textdrawy (TextDrawCreate) a nie hráčske (CreatePlayerTextDraw) Jáj no nevšimol som si toho.... Ešte asi spím sorry Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 4. Prosinec, 2012 Share Odesláno: 4. Prosinec, 2012 To ale xblixq asi nepozná Link to comment Share on other sites More sharing options...
Dotaz
Lurk 0
Mám problém s vyvoláním stocku HideInfo. Při zadání ShowInfo(playerid,"Ahoj",7); se mi zpráva zobrazí ale již nezmizí. Přidal jsem si tam SCMTA a zjistil jsem ze stock HideInfo se nevyvolal. Nevíte v čem je chyba?
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts