[FS]Text Pitanje

Započeo SlicK, Mart 15, 2010, 23:48:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo imam i ja jedno pitanje ako neko zna zasto mi ovo ne radi...Htio sam napraviti textdraw koj bi se svake minute mjenjao ali kad udem u server on mi se uopce ne pokaze... http://pastebin.com/zkJPxCcB :-\ Hvala
Poslednja Izmena: Mart 15, 2010, 23:49:23 POSLE PODNE od ✔ Slick_Crack ✔
Mysterious roleplay

nastoe

evo ja sam ti to napravio na jedan sasvim drugi princip koji je po meni tocniji i kvalitetniji


// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

//FORWARDI
forward text1(playerid);
forward text2(playerid);
forward text3(playerid);
forward text4(playerid);

//DEFINIRANJE
new Textdraw1;
new Textdraw2;
new Textdraw3;
new Textdraw4;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");


Textdraw1 = TextDrawCreate(1.000000,433.000000, "Los Santos RPG");
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawFont(Textdraw1,1);
TextDrawLetterSize(Textdraw1,0.499999,1.100000);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawSetOutline(Textdraw1,0);
TextDrawSetProportional(Textdraw1,1);
//textdraw 2
Textdraw2 = TextDrawCreate(1.000000,433.000000, "Za sve potrebne komande napisite /HELP");
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawFont(Textdraw2,1);
TextDrawLetterSize(Textdraw2,0.499999,1.100000);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawSetOutline(Textdraw2,0);
TextDrawSetProportional(Textdraw2,1);
//textdraw 3
Textdraw3 = TextDrawCreate(1.000000,433.000000, "Ako trebate pomoc obratite se adminima na /report");
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(Textdraw3,0x000000ff);
TextDrawFont(Textdraw3,1);
TextDrawLetterSize(Textdraw3,0.499999,1.100000);
TextDrawColor(Textdraw3,0xffffffff);
TextDrawSetOutline(Textdraw3,0);
TextDrawSetProportional(Textdraw3,1);
//textdraw 4
Textdraw4 = TextDrawCreate(1.000000,433.000000, "Ako se ne snalazite po gradu napisite /gps za sve vazne lokacije");
TextDrawAlignment(Textdraw4,0);
TextDrawBackgroundColor(Textdraw4,0x000000ff);
TextDrawFont(Textdraw4,1);
TextDrawLetterSize(Textdraw4,0.499999,1.100000);
TextDrawColor(Textdraw4,0xffffffff);
TextDrawSetOutline(Textdraw4,0);
TextDrawSetProportional(Textdraw4,1);
return 1;
}

#endif

public OnPlayerSpawn(playerid)
{
    SetTimerEx("text1", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
    TextDrawShowForPlayer(playerid, Textdraw1);
return 1;
}

public text1(playerid)
{
    SetTimerEx("text2", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
    TextDrawHideForPlayer(playerid,Textdraw1);
    //POKAZI
    TextDrawShowForPlayer(playerid, Textdraw2);
    return 1;
}
public text2(playerid)
{
    SetTimerEx("text3", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
    TextDrawHideForPlayer(playerid,Textdraw2);
    //POKAZI
    TextDrawShowForPlayer(playerid, Textdraw3);
    return 1;
}
public text3(playerid)
{
    SetTimerEx("text3", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
    TextDrawHideForPlayer(playerid,Textdraw3);
    //POKAZI
    TextDrawShowForPlayer(playerid, Textdraw4);
    return 1;
}

evo samo testiro nisam ali ja mislim da bi sve trebalo raditi
Poslednja Izmena: Mart 16, 2010, 07:44:19 PRE PODNE od ExtremePower

Å minker

da ali baaca 7 warninga koje jos do sad nisam vidio :D
sta da napravim

evo warninga
C:\Documents and Settings\PaNtEk!\Desktop\GF SERVER\filterscripts\textdeaw.pwn(71) : warning 213: tag mismatch
C:\Documents and Settings\PaNtEk!\Desktop\GF SERVER\filterscripts\textdeaw.pwn(79) : warning 213: tag mismatch
C:\Documents and Settings\PaNtEk!\Desktop\GF SERVER\filterscripts\textdeaw.pwn(81) : warning 213: tag mismatch
C:\Documents and Settings\PaNtEk!\Desktop\GF SERVER\filterscripts\textdeaw.pwn(88) : warning 213: tag mismatch
C:\Documents and Settings\PaNtEk!\Desktop\GF SERVER\filterscripts\textdeaw.pwn(90) : warning 213: tag mismatch
C:\Documents and Settings\PaNtEk!\Desktop\GF SERVER\filterscripts\textdeaw.pwn(97) : warning 213: tag mismatch
C:\Documents and Settings\PaNtEk!\Desktop\GF SERVER\filterscripts\textdeaw.pwn(99) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


7 Warnings.

i evo red 71
public OnPlayerSpawn(playerid)
{
    SetTimerEx("text1", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
71 TextDrawShowForPlayer(playerid, Textdraw1);
return 1;
}
Poslednja Izmena: Mart 16, 2010, 11:42:35 PRE PODNE od Å minker

nastoe

ljudi moja grska, kako me sramm  :D
nmogu stavljati svoju varijablu new new Textdraw1;

mora biti ovako

new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;


// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

//FORWARDI
forward text1(playerid);
forward text2(playerid);
forward text3(playerid);
forward text4(playerid);

//DEFINIRANJE
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");


Textdraw1 = TextDrawCreate(1.000000,433.000000, "Los Santos RPG");
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawFont(Textdraw1,1);
TextDrawLetterSize(Textdraw1,0.499999,1.100000);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawSetOutline(Textdraw1,0);
TextDrawSetProportional(Textdraw1,1);
//textdraw 2
Textdraw2 = TextDrawCreate(1.000000,433.000000, "Za sve potrebne komande napisite /HELP");
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawFont(Textdraw2,1);
TextDrawLetterSize(Textdraw2,0.499999,1.100000);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawSetOutline(Textdraw2,0);
TextDrawSetProportional(Textdraw2,1);
//textdraw 3
Textdraw3 = TextDrawCreate(1.000000,433.000000, "Ako trebate pomoc obratite se adminima na /report");
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(Textdraw3,0x000000ff);
TextDrawFont(Textdraw3,1);
TextDrawLetterSize(Textdraw3,0.499999,1.100000);
TextDrawColor(Textdraw3,0xffffffff);
TextDrawSetOutline(Textdraw3,0);
TextDrawSetProportional(Textdraw3,1);
//textdraw 4
Textdraw4 = TextDrawCreate(1.000000,433.000000, "Ako se ne snalazite po gradu napisite /gps za sve vazne lokacije");
TextDrawAlignment(Textdraw4,0);
TextDrawBackgroundColor(Textdraw4,0x000000ff);
TextDrawFont(Textdraw4,1);
TextDrawLetterSize(Textdraw4,0.499999,1.100000);
TextDrawColor(Textdraw4,0xffffffff);
TextDrawSetOutline(Textdraw4,0);
TextDrawSetProportional(Textdraw4,1);
return 1;
}

#endif

public OnPlayerSpawn(playerid)
{
   SetTimerEx("text1", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
   TextDrawShowForPlayer(playerid, Textdraw1);
return 1;
}

public text1(playerid)
{
   SetTimerEx("text2", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
   TextDrawHideForPlayer(playerid,Textdraw1);
   //POKAZI
   TextDrawShowForPlayer(playerid, Textdraw2);
   return 1;
}
public text2(playerid)
{
   SetTimerEx("text3", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
   TextDrawHideForPlayer(playerid,Textdraw2);
   //POKAZI
   TextDrawShowForPlayer(playerid, Textdraw3);
   return 1;
}
public text3(playerid)
{
   SetTimerEx("text3", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
   TextDrawHideForPlayer(playerid,Textdraw3);
   //POKAZI
   TextDrawShowForPlayer(playerid, Textdraw4);
   return 1;
}

mene netreba biti sram XD ja sam uzeo kod od ovog sily znaci moras samo dodati text: ispred definicije kako bi ti se prikazali textovi ;)
Poslednja Izmena: Mart 16, 2010, 12:05:50 POSLE PODNE od ExtremePower

Å minker

e sad nema warninga ni nicega ali neradi ti to :/ :S
Poslednja Izmena: Mart 16, 2010, 12:55:17 POSLE PODNE od Å minker

nastoe

sta ne radi, ne prikazuje tekst? meni sve normalno radi prikazuje i sve

Probat cu to...Hvala...Moze Lock  ;D
Mysterious roleplay