Little problem. =/
#1

I tried setting my gamemode text with:
Quote:

public OnGameModeInit()
{
SetGameModeText("Blahblahblah");

But it still comes up with "Blank Script" after I add it and run it on my server. Help please.

Reply
#2

You have to end it with a }
Reply
#3

Quote:
Originally Posted by Free17Theo
You have to end it with a }
I added:
Quote:

return 1;
}

After the end all my objects and car spawns in OnGameModeInit. No luck.
Reply
#4

So it looks like this

public OnGameModeInit()
{
SetGameModeText("Blahblahblah");
}
Reply
#5

Mine is:
Quote:

public OnGameModeInit()
{
SetGameModeText("blahblahblah");
Class_Add(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddStaticVehicle(431,293.850,-1845.151,20.549,90.0,-1,-1);
AddStaticVehicle(431,278.287,-1845.142,20.549,90.0,-1,-1);
AddStaticVehicle(431,246.079,-1853.799,20.549,270.0,-1,-1);
AddStaticVehicle(431,231.557,-1853.591,20.549,270.0,-1,-1);
CreateDynamicObject(18450,-2253.969,-1397.789,472.002,0.0,0.0,-79.06;
CreateDynamicObject(18450,-2267.987,-1325.621,472.014,0.0,0.0,-79.06;
CreateDynamicObject(18450,-2280.359,-1261.313,472.027,0.0,0.0,-79.06;
CreateDynamicObject(18450,-2290.145,-1210.481,474.939,0.0,13.751,-79.06;
CreateDynamicObject(18450,-2299.487,-1162.192,490.383,0.0,26.643,-79.06;
CreateDynamicObject(18450,-2236.270,-1723.711,484.262,0.0,-17.189,-38.675);
return 1;
}

Is that wrong? The objects and vehicles work, just that the gm name is still "blank script."
Reply
#6

use find and type in GameModeText and you'll find it.You don't put it in OnGamemodeInit
Reply
#7

Quote:
Originally Posted by craponnaruto
use find and type in GameModeText and you'll find it.You don't put it in OnGamemodeInit
Read the main post before you reply, he wants SetGameModeText NOT GameTextForPlayer.
Reply
#8

Probably one of the FS you are using has the "SetGameModeText("Blank Script");"
in it, better check the FS you made and added to your server
Reply
#9

Or maybe he didnt change gamemode in server.cfg >.>
Reply
#10

Ok, dunno why but Class_Add seems to interfere with the GM text, if I use addplayerclass, its ok. =S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)