SA-MP Forums Archive
Certain FS are not working - 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: Certain FS are not working (/showthread.php?tid=290194)



Certain FS are not working - sherlock - 14.10.2011

Some filterscripts i add cause my gamemode commands to stop working but the filterscript ones work fine,how can i fix this??


Re: Certain FS are not working - [MWR]Blood - 14.10.2011

return 0 on OnPlayerCommandText.


Re: Certain FS are not working - sherlock - 14.10.2011

So that goes under it like this??

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
return 0;
{



Re: Certain FS are not working - sleepysnowflake - 14.10.2011

Tehnically, it goes like :

public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}

but what be probablly meant is that you should look up in the FILTERSCRIPTS for that, because if they return it, it won't work. Also, ZCMD disables OnPlayerCommandText.


Re: Certain FS are not working - sherlock - 14.10.2011

Changing it to this just gave me 7 errors about invalid function or declaration


Re: Certain FS are not working - Stigg - 14.10.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/blah", cmdtext, true, 10) == 0)
    {
        //blah
        return 1;
    }
    if (strcmp("/blah2", cmdtext, true, 10) == 0)
    {
        //blah
        return 1;
    }
    return 0;//return 0 here...
}



Re: Certain FS are not working - sherlock - 14.10.2011

6 errors this time,once again all invalid function or declaration. Here's a portion of the code

pawn Код:
public Door1Close(playerid)
{
    MoveObject(Door1, 250.57829285,62.77145767,1003.96960449, 0.5);
    SendClientMessage(playerid, Message_Close_Color, Close_Message);
    return 1;
}

public Door2Close(playerid)
{
    MoveObject(Door2, 248.08538818,75.28663635,1003.96960449, 0.5);
    SendClientMessage(playerid, Message_Close_Color, Close_Message);
    return 1;
}

public Door3Close(playerid)
{
    MoveObject(Door3, 243.69999695,75.31128693,1004.450012207,0.5);
    SendClientMessage(playerid, Message_Close_Color, Close_Message);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/Dooropen", true))
    {
        if(GetPlayerSkin(playerid) == 265 || 280 || 281 || 282 || 283 || 284 || 288)
        {
            if(IsPlayerInRangeOfPoint(playerid, 2.0, 249.4305,63.5593,1003.6406))
         {
                MoveObject(Door1, 250.578125, 61.020000457764, 1003.9696044922, 0.5);
                SetTimer("Door1Close", 5000, false);
            }
            else if(IsPlayerInRangeOfPoint(playerid, 2.0, 247.7019,76.2960,1003.6406))
            {
                MoveObject(Door2, 248.0849609375, 73.5, 1003.9696044922, 0.5);
                SetTimer("Door2Close", 5000, false);
            }
            else if(IsPlayerInRangeOfPoint(playerid, 2.0, 244.5161,75.7830,1003.9963))
            {
                MoveObject(Door3, 243.69921875, 73.400001525879, 1004.450012207, 0.5);
                SetTimer("Door3Close", 5000, false);
            }
        }
        else return SendClientMessage(playerid, Message_Color, Error_Message);
    }
    return 1;
}



Re: Certain FS are not working - Kerlan - 14.10.2011

How can i advertise my server? What requirements do i need? Can All rep me Please i working so hard to get this server online and i really want to advertise it Please rep me.


Re: Certain FS are not working - sherlock - 15.10.2011

Quote:
Originally Posted by Kerlan
Посмотреть сообщение
How can i advertise my server? What requirements do i need? Can All rep me Please i working so hard to get this server online and i really want to advertise it Please rep me.
I dont recall posting this topic in the advertising section