I'm trying to make a gametype and I deleted everything out of it except the basics. I'm familiar with GSC coding so I don't understand why this isn't working.
Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill( "connected", player );
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}
Which errors do you get?
Could you tell me which file you edited/created?
Which file you are using to load this gsc?
(10-31-2013, 13:10)SailorMoon Wrote: [ -> ]Which errors do you get?
Could you tell me which file you edited/created?
Which file you are using to load this gsc?
Unknown Function
It was _rank.gsc
What file am I using to load the gsc? You mean the program? If so, liberation.
[/quote]
Why modify _rank.gsc?
Make a new .gsc file...
[/quote]
All the other mods use _rank.gsc
Why does it matter? Do I need to change it?
Why modify _rank.gsc?
Make a new .gsc file...
[/quote]
All the other mods use _rank.gsc
Why does it matter? Do I need to change it?
[/quote]
Because it's not so important. You can use any file instead. I don't know why everyone is using _rank.gsc. ( since mw2, maybe you need to be lazy ass to write methods like 'onplayerspawned', 'connected' etc. )
I cant see any error there
(11-02-2013, 01:01)SailorMoon Wrote: [ -> ] (11-01-2013, 23:39)CheeseToast Wrote: [ -> ]
Why modify _rank.gsc?
Make a new .gsc file...
All the other mods use _rank.gsc
Why does it matter? Do I need to change it?
[/quote]
Because it's not so important. You can use any file instead. I don't know why everyone is using _rank.gsc. ( since mw2, maybe you need to be lazy ass to write methods like 'onplayerspawned', 'connected' etc. )
[/quote]
I tried _gametype.gsc and there was no mods.
(11-02-2013, 01:01)SailorMoon Wrote: [ -> ] (11-01-2013, 23:39)CheeseToast Wrote: [ -> ]
Why modify _rank.gsc?
Make a new .gsc file...
All the other mods use _rank.gsc
Why does it matter? Do I need to change it?
[/quote]
Because it's not so important. You can use any file instead. I don't know why everyone is using _rank.gsc. ( since mw2, maybe you need to be lazy ass to write methods like 'onplayerspawned', 'connected' etc. )
[/quote]
I tried _gametype.gsc and there was no mods.
quoting a text already seems to be challenging you