Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: HarryX_RaZzZor poslato Maj 10, 2015, 19:18:45 POSLE PODNE

Naslov: [Pomoc] TextDrawovi
Poruka od: HarryX_RaZzZor poslato Maj 10, 2015, 19:18:45 POSLE PODNE
Skripta koju koristim: Moja
Detaljan opis problema: Napravio sam TD-ove za Reg i Log system | I ubacio ih i kad se Registrujem ili Logujem nigdje TD-ova.. Provjeravo sam da li je do tajmera (KORISTIO SAM tajmere za neke stvari vidjet cete) i ubacio sam kameru i poruku i to sve izbaci ali TD-ove ne..
Dio skripte:




public OnPlayerConnect(playerid)
{

if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ClearChat();

    poslije[playerid] = SetTimerEx("Konektovanje0", 50, false, "d",playerid);
}
else
    {
        ClearChat();

    poslije[playerid] = SetTimerEx("Konektovanje0", 50, false, "d",playerid);
}
   
   
return 1;
}






forward Konektovanje0(playerid);
public Konektovanje0(playerid)
{

new rand = random(sizeof(RandomKameraPos));
new rand2 = rand;
        SetPlayerPos(playerid,RandomKameraPos[rand][0], RandomKameraPos[rand][1], RandomKameraPos[rand][2]-10);
InterpolateCameraPos(playerid, RandomKameraPos[rand][0],RandomKameraPos[rand][1],RandomKameraPos[rand][2],RandomKameraPos[rand][3],RandomKameraPos[rand][4],RandomKameraPos[rand][5], 9000);
InterpolateCameraLookAt(playerid, RandomKameraLA[rand2][0],RandomKameraLA[rand2][1],RandomKameraLA[rand2][2],RandomKameraLA[rand2][3],RandomKameraLA[rand2][4],RandomKameraLA[rand2][5], 9000);


ClearChat();
SCM(playerid, -1,"Nema TDova");


TextDrawShowForPlayer(playerid, RegLog0);
TextDrawShowForPlayer(playerid, RegLog1);
TextDrawShowForPlayer(playerid, RegLog2);
TextDrawShowForPlayer(playerid, RegLog3);
TextDrawShowForPlayer(playerid, RegLog4);
TextDrawShowForPlayer(playerid, RegLog5);
TextDrawShowForPlayer(playerid, RegLog6);
TextDrawShowForPlayer(playerid, RegLog7);
TextDrawShowForPlayer(playerid, RegLog8);
TextDrawShowForPlayer(playerid, RegLog9);
TextDrawShowForPlayer(playerid, RegLog10);
TextDrawShowForPlayer(playerid, RegLog11);
TextDrawShowForPlayer(playerid, RegLog12);
TextDrawShowForPlayer(playerid, RegLog13);
TextDrawShowForPlayer(playerid, RegLog14);
TextDrawShowForPlayer(playerid, RegLog15);
TextDrawShowForPlayer(playerid, RegLog16);
TextDrawShowForPlayer(playerid, RegLog17);
TextDrawShowForPlayer(playerid, RegLog18);
TextDrawShowForPlayer(playerid, RegLog19);
TextDrawShowForPlayer(playerid, RegLog20);




    poslije1[playerid] = SetTimerEx("Konektovanje", 9000, false, "d",playerid);

KillTimer(poslije[playerid]);
return 1;
}
//------------------------------------------------------------------------------
forward Konektovanje(playerid);
public Konektovanje(playerid)
{
TextDrawHideForPlayer(playerid,RegLog0);
    TextDrawHideForPlayer(playerid,RegLog1);
TextDrawHideForPlayer(playerid,RegLog2);
TextDrawHideForPlayer(playerid,RegLog3);
TextDrawHideForPlayer(playerid,RegLog4);
TextDrawHideForPlayer(playerid,RegLog5);
TextDrawHideForPlayer(playerid,RegLog6);
TextDrawHideForPlayer(playerid,RegLog7);
TextDrawHideForPlayer(playerid,RegLog8);
TextDrawHideForPlayer(playerid,RegLog9);
TextDrawHideForPlayer(playerid,RegLog10);
TextDrawHideForPlayer(playerid,RegLog11);
TextDrawHideForPlayer(playerid,RegLog12);
TextDrawHideForPlayer(playerid,RegLog13);
TextDrawHideForPlayer(playerid,RegLog14);
TextDrawHideForPlayer(playerid,RegLog15);
TextDrawHideForPlayer(playerid,RegLog16);
TextDrawHideForPlayer(playerid,RegLog17);
TextDrawHideForPlayer(playerid,RegLog18);
TextDrawHideForPlayer(playerid,RegLog19);
TextDrawHideForPlayer(playerid,RegLog20);

SCM(playerid, -1, "Sad trebaju nestati!!");

if(fexist(UserPath(playerid)))
    {

        //new playername[MAX_PLAYER_NAME];
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ClearChat();
        new string1[256];
        format( string1, sizeof( string1 ), "\n\n"COL_WHITE"Nalog "COL_GREEN"%s "COL_WHITE"je pronadjen\nMolimo Vas ukucajte lozinku za Vas nalog.\n\n", ImeIgraca(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, ""COL_WHITE"Country Gaming | Login", string1, "U redu", "Izadji");

}
else
    {
        //ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_WHITE"Country Gaming | Register",""COL_WHITE"Nalog "COL_GREEN"%s "COL_WHITE"nije pronadjen\nMolimo Vas ukucajte Vasu lozinku koju cete koristiti.","Register","Izlaz");
        new string[256];
ClearChat();
format(string,sizeof(string),"\n\n{FFFFFF}Korisnicki nalog "COL_GREEN"%s {FFFFFF}nije pronadjen.\n\
{FFFFFF}Molimo Vas upisite lozinku koju cete koristiti za prijavu\n\n",ImeIgraca(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD, ""COL_WHITE"Country Gaming | Registracija", string, "U redu", "Izadji");
}
KillTimer(poslije1[playerid]);
return 1;
}








Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Naslov: Odg: [Pomoc] TextDrawovi
Poruka od: arnel avdic poslato Maj 10, 2015, 22:29:03 POSLE PODNE
pa jesi ih ubacio pod ongamemode init
Naslov: Odg: [Pomoc] TextDrawovi
Poruka od: HarryX_RaZzZor poslato Maj 10, 2015, 22:48:52 POSLE PODNE
Pa naravno da jesam, bilo bi errora ;)

Napravio sam..