A syntax error that I can't see whats causing it.

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Re: A syntax error that I can't see whats causing it.

Post by F |Madness| U » June 23rd, 2011, 11:25 pm

I think I already tried that, can't really remember now.

Anyway I can't connect to Black Ops server at the moment meaning I can't even make my own offline server >.< I'll try it ASAP and let you know if it works.
-

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: A syntax error that I can't see whats causing it.

Post by IzNoGoD » June 23rd, 2011, 11:43 pm

Wait, you need to be online to start a game offline?

Why dont you just play cod2/4?
LMGTFY!

Its not a glitch... Its the future!

F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Re: A syntax error that I can't see whats causing it.

Post by F |Madness| U » June 24th, 2011, 12:09 am

You can't create offline servers for some reason, meaning you have to be online to create a server.

I do play CoD4 (never got into CoD2), however one of my favourite mods on CoD4 is dead now, so I want to remake it on Black Ops where there should be a large enough player base to support it.
-

F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Re: A syntax error that I can't see whats causing it.

Post by F |Madness| U » June 24th, 2011, 1:23 am

Just about to test it but getting syntax errors with this bit of code:

Code: Select all

deathMessage = [];
                deathMessage[0] = "message 1";
                deathMessage[1] = "message 2";
                deathMessage[2] = "message 3";
                
                players = getentarray("player","classname");
                for(i=0;i<level.players.size;i++)
                {
            level.players[i] iprintlnbold(deathMessage[][randomint(deathMessage[].size)]);
                }
-

megazor
CJ Worshipper
CJ Worshipper
Posts: 414
Joined: July 22nd, 2009, 3:02 am
Location: Russia, Vladivostok

Re: A syntax error that I can't see whats causing it.

Post by megazor » June 24th, 2011, 2:45 am

Code: Select all

deathMessage = [];
deathMessage[0] = "message 1";
deathMessage[1] = "message 2";
deathMessage[2] = "message 3";
                
players = getentarray("player","classname");
for ( i = 0; i < players.size; i++)
            players[i] iprintlnbold(deathMessage[ randomint(deathMessage.size) ]);

F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Re: A syntax error that I can't see whats causing it.

Post by F |Madness| U » June 24th, 2011, 2:49 am

Ah of course, stupid me. Thanks.
-

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests