[Pomoc]

Započeo zikolukic, Mart 31, 2013, 01:31:12 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Poruke.pwn(87) : error 001: expected token: ";", but found "public"

////Include////
#include <a_samp>
///define i new////
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
///forwardi///
forward RandomMessage();
///public///
public OnFilterScriptInit()
{
print(" ");
print(" ");
print(" ");


////////////Glavni TEXTDRAWOWI!////////////
Textdraw0 = TextDrawCreate(2.000000, 430.000000, "_");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.299999,1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 2);
TextDrawBoxColor(Textdraw0, 000050);
TextDrawTextSize(Textdraw0, 700.000000,1500.000000);
///////TEXTDRAW Iz gornjeg desnog coska[ 111 ]/////////////////
Textdraw1 = TextDrawCreate(540.000000, 6.000000, "Balkan");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.660000, 2.099999);
TextDrawColor(Textdraw1, -2147418113);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 2);
///////TEXTDRAW Iz gornjeg desnog coska[ 222 ]/////////////////
Textdraw2 = TextDrawCreate(540.000000, 19.000000, "Gaming");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.660000, 2.099999);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 2);
///////TEXTDRAW Iz gornjeg desnog coska ispod money cifri[ 333 ]/////////////////
Textdraw3 = TextDrawCreate(550.000000, 92.000000, "Money");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.660000, 1.099999);
TextDrawColor(Textdraw3, 332156833);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);

////TAJMERI/////
SetTimer("RandomMessage",8000,1);

return 1;

}

////Poruke ispod na dnu,dodavanje jednostvarno copy dodaj na kraj " , " i onda edit ovu poruku u novi red ////
new RandomMessages[][] =
{
    "~b~Balkan Gaming : ~r~Dobrodosli na ~r~Balkan Gaming",
    "~b~Balkan Gaming : ~r~Ako ste nov igrac i nesto ne razumete pozovite Admina ili  Hellpera ~b~/new",
    "~b~Balkan Gaming : ~r~Zabranjeno je koristiti Cheat,ako vidite da neko koristi Cheat prijavite ga na: ~b~/report",
    "~b~Balkan Gaming : ~r~Ako vam je potrebna pomoc ukucajte:~b~/pomoc"
}

///// Public za TEXTDRAW Poruke //////
public RandomMessage()
{
        TextDrawSetString(Textdraw0, RandomMessages[random(sizeof(RandomMessages))]);
        return 1;
}

public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    TextDrawShowForPlayer(playerid, Textdraw6);
    TextDrawShowForPlayer(playerid, Textdraw7);
    TextDrawShowForPlayer(playerid, Textdraw8);
    TextDrawShowForPlayer(playerid, Textdraw9);
return 1;
}


moze pomoc?
Poslednja Izmena: Mart 31, 2013, 01:32:41 PRE PODNE od zikolukic

Procitaj pravila:

http://balkan-samp.com/forum/index.php?topic=11453.0

Probaj ovako:

////Include////
#include <a_samp>
///define i new////
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
///forwardi///
forward RandomMessage();
///public///
public OnFilterScriptInit()
{
print(" ");
print(" ");
print(" ");


////////////Glavni TEXTDRAWOWI!////////////
Textdraw0 = TextDrawCreate(2.000000, 430.000000, "_");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.299999,1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 2);
TextDrawBoxColor(Textdraw0, 000050);
TextDrawTextSize(Textdraw0, 700.000000,1500.000000);
///////TEXTDRAW Iz gornjeg desnog coska[ 111 ]/////////////////
Textdraw1 = TextDrawCreate(540.000000, 6.000000, "Balkan");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.660000, 2.099999);
TextDrawColor(Textdraw1, -2147418113);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 2);
///////TEXTDRAW Iz gornjeg desnog coska[ 222 ]/////////////////
Textdraw2 = TextDrawCreate(540.000000, 19.000000, "Gaming");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.660000, 2.099999);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 2);
///////TEXTDRAW Iz gornjeg desnog coska ispod money cifri[ 333 ]/////////////////
Textdraw3 = TextDrawCreate(550.000000, 92.000000, "Money");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.660000, 1.099999);
TextDrawColor(Textdraw3, 332156833);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);

////TAJMERI/////
SetTimer("RandomMessage",8000,1);

return 1;

}

////Poruke ispod na dnu,dodavanje jednostvarno copy dodaj na kraj " , " i onda edit ovu poruku u novi red ////
new RandomMessages[][] =
{
    "~b~Balkan Gaming : ~r~Dobrodosli na ~r~Balkan Gaming",
    "~b~Balkan Gaming : ~r~Ako ste nov igrac i nesto ne razumete pozovite Admina ili  Hellpera ~b~/new",
    "~b~Balkan Gaming : ~r~Zabranjeno je koristiti Cheat,ako vidite da neko koristi Cheat prijavite ga na: ~b~/report",
    "~b~Balkan Gaming : ~r~Ako vam je potrebna pomoc ukucajte:~b~/pomoc";
}

///// Public za TEXTDRAW Poruke //////
public RandomMessage()
{
        TextDrawSetString(Textdraw0, RandomMessages[random(sizeof(RandomMessages))]);
        return 1;
}

public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    TextDrawShowForPlayer(playerid, Textdraw6);
    TextDrawShowForPlayer(playerid, Textdraw7);
    TextDrawShowForPlayer(playerid, Textdraw8);
    TextDrawShowForPlayer(playerid, Textdraw9);
return 1;
}
Izvinjavam se na svim glupostima i ako sam nekome napisao nesto lose, neko drugi je koristio moj profil!
__________________________________________
https://bk.gta.world - GTA World Balkan - RAGEMP

kada dajes errore koje imas daj tacnu liniju, ne ceo kod