SA-MP Forums Archive
All the help I need (Updated when I need new help) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: All the help I need (Updated when I need new help) (/showthread.php?tid=71752)



All the help I need (Updated when I need new help) - speedruntrainer - 03.04.2009

So, this is the topic that pwns for all my help since creating a new topic for small little f*cking help isn't needed. If it's easy or not, I don't understand why some Errors are coming up.

I leaned a bit of scripting but I'm still a n00b at it. I can't even change the gamemodetext because of Errors :S, The public OnGameModeInit worked. but I added GameModeText. on the wiki http://samp.breadfish.de/wiki_backup...eModeText.html it says that no return 1 is needed, even if I add it I have Errors. look at the code:

#include <a_samp>

#define FILTERSCRIPT
public OnGameModeInit()
{
UsePlayerPedAnims();
{
//GameModeNameChanger
SetGameModeText ("Reactiontest+DM+Minigames");
{



Error: error 030: compound statement not closed at the end of file (started at line 11)

WTF, I don't even have line 11!


Re: All the help I need (Updated when I need new help) - Pyrokid - 03.04.2009

1. Wrong section

2.
pawn Code:
public OnGameModeInit()
{
  UsePlayerPedAnims();
  //GameModeNameChanger
  SetGameModeText ("Reactiontest+DM+Minigames");
}



Re: All the help I need (Updated when I need new help) - speedruntrainer - 03.04.2009

Thanks, hope you do not get sick of my questions since you answered them Thanks, you rock!
people, if I encounter more problems, stay tune @ this topic!

EDIT: sorry for creating script help topic into the Client board. my bad. can any Admin move it to the Scripting Discussion? then it's home lol