SA-MP Forums Archive
about actor...2 - 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: about actor...2 (/showthread.php?tid=593975)



about actor...2 - sayaunta - 12.11.2015

Code:
new ActorCJ;
 
public OnGameModeInit()
{
    // Create an actor (CJ) at Blueberry Acres (Center of SA map)
    ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
}
whre i should put *new ActorCJ*

someone say:you have to put it on top of script where you are define your server news.

but whre is it?
Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}
sry bcuz posting 2 time...i no get answer


Re: about actor...2 - vassilis - 12.11.2015

Under #include <a_samp> you have to put it!


Re: about actor...2 - sayaunta - 12.11.2015

i should put only new ActorCJ;
or #new ActorCJ?


Re: about actor...2 - sayaunta - 12.11.2015

i got warning
D:\GTA San Andreas\samp037_svr_R2-1-1_win32\gamemodes\try.pwn(42) : warning 217: loose indentation
D:\GTA San Andreas\samp037_svr_R2-1-1_win32\gamemodes\try.pwn(40) : warning 204: symbol is assigned a value that is never used: "ActorCJ"


Re: about actor...2 - Omer. - 12.11.2015

Code:
new ActorCJ;
new ActorBS;
 
public OnGameModeInit()
{
    // Create an actor (CJ) at Blueberry Acres (Center of SA map)
    ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
    // Create an actor (BS) at Blueberry Acres (Center of SA map)
    ActorBS = CreateActor(269, 10.0, 0.0, 3.0, 0.0);
}