Problem with loading scripts. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with loading scripts. (
/showthread.php?tid=323462)
Problem with loading scripts. -
sniperwars - 05.03.2012
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 ?
Re: Problem with loading scripts. -
Edvin - 05.03.2012
Try to put carspawn on server.cfg on line filterscripts, and put this in your gamemode:
Код:
SendRconCommand( "rcon loadfs RadioFSName" );
Shut work now ...
Re: Problem with loading scripts. -
sniperwars - 05.03.2012
I get this error:
Код:
error 021: symbol already defined: "SendRconCommand"
Re: Problem with loading scripts. -
sniperwars - 05.03.2012
Never mind, placed in the wrong section of the script.
Re: Problem with loading scripts. -
Danialdano - 05.03.2012
do NEW SendRconCommandd with two "dd" and then do
pawn Код:
SendRconCommandd( "rcon loadfs RadioFSName" );
Re: Problem with loading scripts. -
sniperwars - 05.03.2012
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.
Re: Problem with loading scripts. -
sniperwars - 05.03.2012
*Bump.
Re: Problem with loading scripts. -
sniperwars - 05.03.2012
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.
Re: Problem with loading scripts. -
Edvin - 06.03.2012
Put it on: OnGameModeInit callback!