Jump to content

Random Game Text


Ph0eniX

Recommended Posts

La cererea lui Zut am creeat un "script" :)) bine...functie nu script in fine

Nume: Zut
Nume FS: RandomAnnounces
Descriere: Un fs care da un announce din 15 in 15 minute...as vrea sa un gen ca asta http://i.imgur.com/FGg2wBv.jpg
Poze(optional):http://i.imgur.com/FGg2wBv.jpg
1. Adauga la OnGameModeInit / OnFilterScriptInit
SetTimer("Announce",150000,true);
2. Creezi 1 public.
forward Announce();
public Announce()
{
new ann = random(3);
switch (ann)
{
case 0: GameTextForAll(" Site-ul nostru este.... ",3000,3);
case 1: GameTextForAll(" IP-up nostru este.... ",3000,3);
case 2: GameTextForAll(" Numele sv-ului este... ",3000,3);
}
}

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Imi da eroarea asta cand vreau sa il compilez in game mode D:\Games\Samp Server\gamemodes\RGS.pwn(2958) : error 001: expected token: "-identifier-", but found "forward"

D:\Games\Samp Server\gamemodes\RGS.pwn(2959) : warning 235: public function lacks forward declaration (symbol "Announce")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.[pawn][/pawn]

Ma poti ajuta ? Mersi anticipat !

Daca ma inrolati in razboi ma declar inapt caci nu vreau sa fiu erou intr-o tara te ca*at .

Link to comment
Share on other sites

Imi da eroarea asta cand vreau sa il compilez in game mode D:\Games\Samp Server\gamemodes\RGS.pwn(2958) : error 001: expected token: "-identifier-", but found "forward"

D:\Games\Samp Server\gamemodes\RGS.pwn(2959) : warning 235: public function lacks forward declaration (symbol "Announce")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.[pawn][/pawn]

Ma poti ajuta ? Mersi anticipat !

Nu ai copiat corect forwardu' uite aici...

forward Announce();

ai uitat tu  " ; " dupa forward Announce() sigur..:) in + ... forwardu adaugal dupa include , news sau enums... oricum peacolo pe sus :))

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Am pus chiar la sfarsitul gm-ului: [pawn]public Announce()

{

new ann = random(3);

switch (ann)

{

case 0: GameTextForAll(" Ne puteti contacta pe skype sau Y!M : syned_97 ",3000,3);

case 1: GameTextForAll(" IP-up nostru este 94.52.118.29 ",3000,3);

case 2: GameTextForAll(" Numele sv-ului este Romania Stung Gaming ",3000,3);

}

//------------------------------------------------------------------------------

//RO//Sfarsit

//RO//Va Rog Nu Stergeti Creditele

//EN//End

//EN//Please Do Not Remove Credits

//----------------------------THE END-------------------------------------------[/pawn]

Si imi da eroarea asta :

D:\Games\Samp Server\gamemodes\RGS.pwn(3080) : error 030: compound statement not closed at the end of file (started at line 3067)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Daca ma inrolati in razboi ma declar inapt caci nu vreau sa fiu erou intr-o tara te ca*at .

Link to comment
Share on other sites

Am pus chiar la sfarsitul gm-ului: [pawn]public Announce()

{

new ann = random(3);

switch (ann)

{

case 0: GameTextForAll(" Ne puteti contacta pe skype sau Y!M : syned_97 ",3000,3);

case 1: GameTextForAll(" IP-up nostru este 94.52.118.29 ",3000,3);

case 2: GameTextForAll(" Numele sv-ului este Romania Stung Gaming ",3000,3);

}

//------------------------------------------------------------------------------

//RO//Sfarsit

//RO//Va Rog Nu Stergeti Creditele

//EN//End

//EN//Please Do Not Remove Credits

//----------------------------THE END-------------------------------------------[/pawn]

Si imi da eroarea asta :

D:\Games\Samp Server\gamemodes\RGS.pwn(3080) : error 030: compound statement not closed at the end of file (started at line 3067)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Mai inchide o acolada ( } )

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

Mai inchide o acolada ( } )

Am pus acolada cum ai zis si acum imi da o eroare la pawn (PAWN COMPILER LIBRARY HAS STOPPED WORKING) Si am incercat sa put inapoi cum era fara a doua acolada si tot imi da eroare pawno-ul.. : :-(

Daca ma inrolati in razboi ma declar inapt caci nu vreau sa fiu erou intr-o tara te ca*at .

Link to comment
Share on other sites

ai uitat undeva o acolada { sau } , din cauza asta iei prea multe errori si iti da erroare la pawno , Zut ce poza zici ?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.