SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Little coding questions - For general minor queries 5 (https://forum.sa-mp.com/showthread.php?t=30938)

!damo!spiderman 21/03/2008 05:00 AM

Little coding questions - For general minor queries 5
 
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.

Antironix 21/03/2008 01:02 PM

Re: Little coding questions - For general minor queries 5
 
Can filterscripts been called from a gm? Is there something that will get return the running FS?

!damo!spiderman 21/03/2008 01:05 PM

Re: Little coding questions - For general minor queries 5
 
You can load a fs from the gamemode using SendRconCommand

!damo!spiderman 21/03/2008 01:13 PM

Re: Little coding questions - For general minor queries 5
 
Yes there is.. native function.. GetServerVarAsString will do it..

GetServerVarAsString( "Filterscripts", buffer[], len );

Antironix 21/03/2008 02:02 PM

Re: Little coding questions - For general minor queries 5
 
Quote:

Originally Posted by !damo!spiderman
Yes there is.. native function.. GetServerVarAsString will do it..

GetServerVarAsString( "Filterscripts", buffer[], len );

Oke, thanks!

yom 21/03/2008 02:05 PM

Re: Little coding questions - For general minor queries 5
 
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

Redirect Left 21/03/2008 11:21 PM

Re: Little coding questions - For general minor queries 5
 
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?

Pixels^ 22/03/2008 03:54 PM

Re: Little coding questions - For general minor queries 5
 
Script most likely.

ConTron 22/03/2008 10:03 PM

Re: Little coding questions - For general minor queries 5
 
Hi there :)

I have a menu option for my script
When i click the option nothing happens
Why is this?

pawn 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);
        }
      }
Is the option.

mabako 23/03/2008 12:13 AM

Re: Little coding questions - For general minor queries 5
 
[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)


All times are GMT. The time now is 05:49 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.