Problem with loading scripts.
#1

Hi guys,

Got another problem with two scripts. I have scripted my own radio system with custom radio stations added and also my own car spawner dialog system. On my server.cfg file on the filterscripts line, If I have the radio script first, then the car spawn does not spawn any vehicles. I type /carmenu and select a vehicle type but nothing. If I put the carmenu first on the server.cfg on the filterscripts line, It will work and spawn vehicles but the radio system will not.
Anyone know why this is happening ?
Reply
#2

Try to put carspawn on server.cfg on line filterscripts, and put this in your gamemode:
Код:
SendRconCommand( "rcon loadfs RadioFSName" );
Shut work now ...
Reply
#3

I get this error:

Код:
error 021: symbol already defined: "SendRconCommand"
Reply
#4

Never mind, placed in the wrong section of the script.
Reply
#5

do NEW SendRconCommandd with two "dd" and then do
pawn Код:
SendRconCommandd( "rcon loadfs RadioFSName" );
Reply
#6

Quote:
Originally Posted by Edvin
Посмотреть сообщение
Try to put carspawn on server.cfg on line filterscripts, and put this in your gamemode:
Код:
SendRconCommand( "rcon loadfs RadioFSName" );
Shut work now ...
This does not work.
Reply
#7

*Bump.
Reply
#8

Never mind, I've just checked my radio script and at the end of the script, it was return 1; so I changed it to return 0; and it works now.
Reply
#9

Put it on: OnGameModeInit callback!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)