Why won't this FS work?
#1

Quote:

/*
convertFFS generated filterscript.

--------------------------------------------------------------------------------

This filterscript base was created from the new.pwn file that is included with
the SA-MP Windows server package and therefore is © 2005-2010 SA-MP.com team.

Please note that to create a public SA-MP server you must agree with the SA-MP
Services Agreement which can be found at http://sa-mp.com/service_agreement.txt
*/

#include <a_samp>

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Filterscript generated by convertFFS");
print("--------------------------------------\n");

//Converted objects and vehicles below!
Coordinates for objects here, removed for obvious reasons.

/*
Objects converted: 36
Vehicles converted: 16
Vehicle models found: 16
----------------------
In the time this conversion took to finish a hummingbird could have flapped it's wings 102.44 times!
*/


return 1;
}

public OnFilterScriptExit()
{
return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])



{
if(!strcmp("/commandtogotoposition", cmdtext, true))
{
SetPlayerPos(playerid, -120.38372040, -3081.67968750, 0.69480735);
SetPlayerFacingAngle(playerid, 270.00000000);
SendClientMessage(playerid, 0xFED530FF, "Welcome to Sols' hangout!");
return 1;
}
return 1;
}




public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

Obviously modified slightly there, but you get the essential idea. For some reason, ServerFFS won't accept it. I don't know why?

Thanks in advance.
Reply
#2

Use [ pawn ][ /pawn ] BBcode please

pawn Код:
#include <a_samp>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Filterscript generated by convertFFS");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/commandtogotoposition", cmdtext, true))
    {
        SetPlayerPos(playerid, -120.38372040, -3081.67968750, 0.69480735);
        SetPlayerFacingAngle(playerid, 270.00000000);
        SendClientMessage(playerid, 0xFED530FF, "Welcome to Sols' hangout!");
        return 1;
    }
    return 0;
}
That one must work xD
Reply
#3

Try this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/commandtogotoposition", cmdtext, true))
    {
        SetPlayerPos(playerid, -120.38372040, -3081.67968750, 0.69480735);
        SetPlayerFacingAngle(playerid, 270.00000000);
        SendClientMessage(playerid, 0xFED530FF, "Welcome to Sols' hangout!");
        return 1;
    }
    return 0;
}
Edit: person above bet me to it :/
Reply
#4

That person above you has a name :P
Whatever it was not the OnPlayerCommandText, but the OnFilterScriptInit:

Quote:

//Converted objects and vehicles below!
Coordinates for objects here, removed for obvious reasons.

The 2nd line wasn't commented
Reply
#5

Ahk, thought it could have been the spaces causing it to screw up.
Reply
#6

Why would you make a filterscript for just one command after all? xD

Or well. I guess you're not done. :P
Reply
#7

Or it's just an beginner that tries something out
Everything ne. Wait a minute. I meant 'Everyone'... FAIL *facepalm*
Lets try it again:

Everyone needs to make a begin
Reply
#8

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
Or it's just an beginner that tries something out
Everything ne. Wait a minute. I meant 'Everyone'... FAIL *facepalm*
Lets try it again:

Everyone needs to make a begin
Yes. I'm operating a relatively successful server, and am a decent mapper, however I have No coding experience.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)