![]() |
#1 |
Huge Clucker
![]() ![]() ![]() Join Date: Oct 2006
Posts: 467
Reputation: 155
|
![]()
The last topic was getting full so I decided to make a new one again.
Use the search on the forums to search for your question before posting here. Chances are its already be answered. Part 1: Missing in action Part 2: Missing in action Part 3: Missing in action Part 4: Missing in action Don't paste big scripts in that topic, use pastebin for that. If you don't know how to port your script to 0.2, post/ask in the 0.1 to 0.2 topic. First help should be ALWAYS the IRC-channel irc.sa-mp.com #sa-mp.scripting. If you can't join use this thread as place to ask if you need some help with a code snippet or something doesn't work. Scripting Beginners should check the intro first. Last edited by !damo!spiderman; 15/01/2013 at 11:51 PM. |
![]() |
![]() |
![]() |
#2 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2007
Posts: 1,429
Reputation: 20
|
![]()
Can filterscripts been called from a gm? Is there something that will get return the running FS?
|
![]() |
![]() |
![]() |
#3 |
Huge Clucker
![]() ![]() ![]() Join Date: Oct 2006
Posts: 467
Reputation: 155
|
![]()
You can load a fs from the gamemode using SendRconCommand
|
![]() |
![]() |
![]() |
#4 |
Huge Clucker
![]() ![]() ![]() Join Date: Oct 2006
Posts: 467
Reputation: 155
|
![]()
Yes there is.. native function.. GetServerVarAsString will do it..
GetServerVarAsString( "Filterscripts", buffer[], len ); |
![]() |
![]() |
![]() |
#5 | |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2007
Posts: 1,429
Reputation: 20
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2006
Posts: 2,005
Reputation: 6
|
![]()
Ya, but when you use GetServerVarAsString("filterscripts".. it returns only the first on the line, as with gamemode0 etc, it doesn't return the 'repeat number', it seem to ignore all after the space
|
![]() |
![]() |
![]() |
#7 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2007
Location: Yorkshire, England
Posts: 1,304
Reputation: 362
|
![]()
My script reboots itself upon the script ending and the team finishing the objective, sometimes the server crashes though whilst reloading the script, is this a SA:MP instability or a script erorr?
|
![]() |
![]() |
![]() |
#8 |
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2006
Posts: 845
Reputation: 22
|
![]()
Script most likely.
|
![]() |
![]() |
![]() |
#9 |
Big Clucker
![]() ![]() Join Date: Mar 2007
Posts: 72
Reputation: 1
|
![]()
Hi there
![]() I have a menu option for my script When i click the option nothing happens Why is this? Code:
case 0:{ SendClientMessage(playerid,COLOR_LIGHTBLUE,"[!]Teleported to: SF Biffin Bridge Hotel"); HideMenuForPlayer(sftp, playerid); if(IsPlayerInAnyVehicle(playerid)) { new vid =GetPlayerVehicleID(playerid); SetVehiclePos(vid,-2456.4417,137.2120,34.8212); }else{ SetPlayerPos(playerid,-2456.4417,137.2120,34.8212); } } |
![]() |
![]() |
![]() |
#10 |
Big Clucker
![]() ![]() Join Date: Apr 2006
Posts: 175
Reputation: 3
|
![]()
[SCF]ConTron:
if it doesn't show the SendClientMessage, you're doing something wrong somewhere else. Plus you don't need HideMenu in the callback for when a row was selected. (however it may be called) |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to make a soldier aotumaticly be general when the general dies ? | AlbanianGuy | Scripting Help | 35 | 13/05/2012 03:35 PM |
Minor problem | Desert | Help Archive | 4 | 17/03/2010 06:24 PM |
Counting with mysql queries | actiwe | Help Archive | 2 | 26/02/2010 02:36 PM |
SQL queries using GROUP BY | Dabombber | Help Archive | 2 | 05/10/2009 07:47 PM |