Results 1 to 5 of 5

Thread: The first entity isn't 'worldspawn'

  1. #1
    Private First Class
    Join Date
    Nov 2015
    Posts
    125
    Thanks
    37
    Thanked 14 Times in 14 Posts

    The first entity isn't 'worldspawn'

    how can i fix this issue on S&D mod . It occurs while round starting
    Code:
    			
    fid = openfile("xxx.cfg", "read");
    			if(fid == -1)
    				return;
    				
    			argcount = freadln(fid);
    			while(argcount > -1)
    			{
    				result = "";
    				for(o = 0 ; o < argcount ; o ++)
    					result =  fgetarg(fid,o);
    				self printOutOfBand("print\n" + result + "\n");
    				wait level.fps_multiplier *  0.05 ;
    				argcount = freadln(fid);
    			}
    			closefile(fid);
    			return;

  2. #2
    Private First Class
    Join Date
    Nov 2015
    Posts
    125
    Thanks
    37
    Thanked 14 Times in 14 Posts
    i edited as :
    if(fid != -1)
    closefile(fid);

    Now i have this error :

    ERROR: G_ParseSpawnVars: closing brace without data

  3. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,616
    Thanks
    17
    Thanked 957 Times in 599 Posts
    Is this thing threaded?

    Why do you need the wait in a pre-game thing? Just resettimeout;
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

    Sending me a private message makes me want to help you LESS.

  4. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    feanor (20th May 2020),kung foo man (22nd May 2020)

  5. #4
    Private First Class
    Join Date
    Nov 2015
    Posts
    125
    Thanks
    37
    Thanked 14 Times in 14 Posts
    i was not knowing "resettimeout" command, thanks you

  6. #5
    Private First Class
    Join Date
    Nov 2015
    Posts
    125
    Thanks
    37
    Thanked 14 Times in 14 Posts
    hi , it is not related to this topic but can i ask is there a way to use printOutOfBand for rcon tools?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •