SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Help Archive (https://forum.sa-mp.com/forumdisplay.php?f=89)
-   -   Need help adding these objects (https://forum.sa-mp.com/showthread.php?t=101956)

CameronF91 12/10/2009 11:32 PM

Need help adding these objects
 
Ok, im trying to add these 3 objects to a simple FS and seem to have 2 warnings

Here is the script
Code:

#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Blank Filterscript by your name here");
        print("--------------------------------------\n");
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}

#else

main()
{
        print("\n----------------------------------");
        print(" Blank Gamemode by your name here");
        print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
        // Don't use these lines if it's a filterscript
        SetGameModeText("PalominoCreek");
CreateObject(16563, 2463.6838378906, -53.93856048584, 24.184394836426, 0, 0, 90.555114746094);
CreateObject(16564, 2428.2980957031, 135.7837677002, 25.455825805664, 0, 0, 179.09997558594);
CreateObject(7153, 2479.1232910156, -92.20337677002, 28.317699432373, 1.0299987792969, 0, 0);

AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
        return 1;
}

public OnGameModeExit()
{
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        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 OnPlayerPrivmsg(playerid, recieverid, text[])
{
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/mycommand", cmdtext, true, 10) == 0)
        {
                // Do something here
                return 1;
        }
        return 0;
}

public OnPlayerInfoChange(playerid)
{
        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 OnObjectMoved(objectid)
{
        return 1;
}

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

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

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

public OnPlayerExitedMenu(playerid)
{
        return 1;
}

Here are the errors

Code:

C:\Users\Cameron\Documents\My Projects\IMG folder\palomino creek medic and police.pwn(37) : warning 217: loose indentation
C:\Users\Cameron\Documents\My Projects\IMG folder\palomino creek medic and police.pwn(42) : warning 217: loose indentation
Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

Please help!


CameronF91 13/10/2009 07:47 AM

Re: Need help adding these objects
 
Someone?

Anyone?

Abernethy 13/10/2009 07:48 AM

Re: Need help adding these objects
 
Quote:

Originally Posted by CameronF91
Someone?

Anyone?

Just press tab, so they're in line with everything else.

Imran.Abbas 13/10/2009 08:03 AM

Re: Need help adding these objects
 
okay Done.......


Code:

#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Blank Filterscript by your name here");
        print("--------------------------------------\n");
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}

#else

main()
{
        print("\n----------------------------------");
        print(" Blank Gamemode by your name here");
        print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
        // Don't use these lines if it's a filterscript
        SetGameModeText("PalominoCreek");
    CreateObject(16563, 2463.6838378906, -53.93856048584, 24.184394836426, 0, 0, 90.555114746094);
    CreateObject(16564, 2428.2980957031, 135.7837677002, 25.455825805664, 0, 0, 179.09997558594);
    CreateObject(7153, 2479.1232910156, -92.20337677002, 28.317699432373, 1.0299987792969, 0, 0);
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
        return 1;
}

public OnGameModeExit()
{
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        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 OnPlayerPrivmsg(playerid, recieverid, text[])
{
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/mycommand", cmdtext, true, 10) == 0)
        {
                // Do something here
                return 1;
        }
        return 0;
}

public OnPlayerInfoChange(playerid)
{
        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 OnObjectMoved(objectid)
{
        return 1;
}

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

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

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

public OnPlayerExitedMenu(playerid)
{
        return 1;
}


CameronF91 13/10/2009 08:07 AM

Re: Need help adding these objects
 
Im still getting those two errors? :roll:

Imran.Abbas 13/10/2009 08:10 AM

Re: Need help adding these objects
 
Quote:

Originally Posted by CameronF91
Im still getting those two errors? :roll:

lol, when i com its was fine , after posting its changed :P

Look at Attachments....download , then tell me if still get....

CameronF91 13/10/2009 08:14 AM

Re: Need help adding these objects
 
Ok, I think it has worked but it says this when I compile it?
Nothing else happens?

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


Imran.Abbas 13/10/2009 08:45 AM

Re: Need help adding these objects
 
Quote:

Originally Posted by CameronF91
Ok, I think it has worked but it says this when I compile it?
Nothing else happens?

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


its fine now...

CameronF91 13/10/2009 09:01 AM

Re: Need help adding these objects
 
So where is my .amx ?

Abernethy 13/10/2009 09:03 AM

Re: Need help adding these objects
 
Quote:

Originally Posted by CameronF91
So where is my .amx ?

In your /gamemodes


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

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