SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 12/10/2009, 11:32 PM   #1
CameronF91
Big Clucker
 
Join Date: Jul 2009
Posts: 69
Reputation: 10
Default 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 is offline  
Old 13/10/2009, 07:47 AM   #2
CameronF91
Big Clucker
 
Join Date: Jul 2009
Posts: 69
Reputation: 10
Default Re: Need help adding these objects

Someone?

Anyone?
CameronF91 is offline  
Old 13/10/2009, 07:48 AM   #3
Abernethy
Gangsta
 
Join Date: May 2009
Posts: 898
Reputation: -1
Default Re: Need help adding these objects

Quote:
Originally Posted by CameronF91
Someone?

Anyone?
Just press tab, so they're in line with everything else.
Abernethy is offline  
Old 13/10/2009, 08:03 AM   #4
Imran.Abbas
Huge Clucker
 
Join Date: Aug 2009
Posts: 341
Reputation: 0
Default 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;
}
Imran.Abbas is offline  
Old 13/10/2009, 08:07 AM   #5
CameronF91
Big Clucker
 
Join Date: Jul 2009
Posts: 69
Reputation: 10
Default Re: Need help adding these objects

Im still getting those two errors?
CameronF91 is offline  
Old 13/10/2009, 08:10 AM   #6
Imran.Abbas
Huge Clucker
 
Join Date: Aug 2009
Posts: 341
Reputation: 0
Default Re: Need help adding these objects

Quote:
Originally Posted by CameronF91
Im still getting those two errors?
lol, when i com its was fine , after posting its changed :P

Look at Attachments....download , then tell me if still get....
Imran.Abbas is offline  
Old 13/10/2009, 08:14 AM   #7
CameronF91
Big Clucker
 
Join Date: Jul 2009
Posts: 69
Reputation: 10
Default 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

CameronF91 is offline  
Old 13/10/2009, 08:45 AM   #8
Imran.Abbas
Huge Clucker
 
Join Date: Aug 2009
Posts: 341
Reputation: 0
Default 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...
Imran.Abbas is offline  
Old 13/10/2009, 09:01 AM   #9
CameronF91
Big Clucker
 
Join Date: Jul 2009
Posts: 69
Reputation: 10
Default Re: Need help adding these objects

So where is my .amx ?
CameronF91 is offline  
Old 13/10/2009, 09:03 AM   #10
Abernethy
Gangsta
 
Join Date: May 2009
Posts: 898
Reputation: -1
Default Re: Need help adding these objects

Quote:
Originally Posted by CameronF91
So where is my .amx ?
In your /gamemodes
Abernethy is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding objects Angelo94 Help Archive 8 18/10/2009 02:20 PM
>>> Adding Objects Please Help! <<< DeltaAirlines12 Help Archive 6 03/08/2009 06:59 PM
Adding objects? gemadon Help Archive 1 30/07/2009 04:02 PM
Adding Objects Hunchbakk Help Archive 1 07/03/2009 05:18 AM
Adding Objects StrickenKid Help Archive 2 02/02/2009 10:28 PM


All times are GMT. The time now is 02:13 AM.


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