SA-MP Forums Archive
help me plz @@ - 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: help me plz @@ (/showthread.php?tid=593989)



help me plz @@ - 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"

cn i know y
Код:
 
/*******************************************************************************
*                SERVER NAME: TAIK
*                SERVER VERSION: Mode v1.0
*                SERVER DEVELOPER: Ibtiqari
*
*   INFORMATION:
*
*******************************************************************************/
#include <a_samp>
new ActorCJ;
#if defined FILTERSCRIPT


public OnFilterScriptInit()
{
	print("JAJAJAJJAJAJAJAJJJAJAJAJAJJA");
	print(" JAJAJJAJAJAJJAJAJAJAJJAJAJAJA");
	print("JAJAJAJJAJAJAJAJAJAJJAJAJA");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

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

#endif

public OnGameModeInit()
{
   ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
 //classes
 	SetGameModeText("JAJAJAJAJAJAJAAJAJAJAJAJAJAJAJAJA");
	AddPlayerClass(39, 2000.6174,1569.3989,15.3672,1.4313, 3, 3, 2, 2, 4, 1);
	return 1;

}



Re: help me plz @@ - lucamsx - 12.11.2015

why are you using both OnFilterScriptInit and OnGameModeInit?


Re: help me plz @@ - sayaunta - 12.11.2015

Quote:
Originally Posted by lucamsx
Посмотреть сообщение
why are you using both OnFilterScriptInit and OnGameModeInit?
wut u mean??


Re: help me plz @@ - lucamsx - 12.11.2015

do you want to write a filterscript, or a gamemode?
if it's going to be gamemode, get rid of the OnFilterScriptInit, OnFilterScriptExit and main.
if not, get rid of OnGameModeInit


Re: help me plz @@ - jlalt - 12.11.2015

you just made the actor did not work with it .-.on using it will gone like the above >
PHP код:
/*******************************************************************************
*                SERVER NAME: TAIK
*                SERVER VERSION: Mode v1.0
*                SERVER DEVELOPER: Ibtiqari
*
*   INFORMATION:
*
*******************************************************************************/
#include <a_samp>
new ActorCJ;
public 
OnFilterScriptInit()
{
    print(
"JAJAJAJJAJAJAJAJJJAJAJAJAJJA");
    print(
" JAJAJJAJAJAJJAJAJAJAJJAJAJAJA");
    print(
"JAJAJAJJAJAJAJAJAJAJJAJAJA");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
public 
OnGameModeInit()
{
    
ActorCJ CreateActor(00.00.03.00.0);
 
//classes
     
SetGameModeText("JAJAJAJAJAJAJAAJAJAJAJAJAJAJAJAJA");
    
AddPlayerClass(392000.6174,1569.3989,15.3672,1.4313332241);
    
SetTimer("Actorpos",2000,1);
    return 
1;
}
forward Actorpos();
public 
Actorpos() {
   
SetActorPos(ActorCJ1.02.03.0);
   return 
1;




Re: help me plz @@ - sayaunta - 12.11.2015

Quote:
Originally Posted by jlalt
Посмотреть сообщение
you just made the actor did not work with it .-.on using it will gone like the above >
PHP код:
/*******************************************************************************
*                SERVER NAME: TAIK
*                SERVER VERSION: Mode v1.0
*                SERVER DEVELOPER: Ibtiqari
*
*   INFORMATION:
*
*******************************************************************************/
#include <a_samp>
new ActorCJ;
public 
OnFilterScriptInit()
{
    print(
"JAJAJAJJAJAJAJAJJJAJAJAJAJJA");
    print(
" JAJAJJAJAJAJJAJAJAJAJJAJAJAJA");
    print(
"JAJAJAJJAJAJAJAJAJAJJAJAJA");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
public 
OnGameModeInit()
{
    
ActorCJ CreateActor(00.00.03.00.0);
 
//classes
     
SetGameModeText("JAJAJAJAJAJAJAAJAJAJAJAJAJAJAJAJA");
    
AddPlayerClass(392000.6174,1569.3989,15.3672,1.4313332241);
    
SetTimer("Actorpos",2000,1);
    return 
1;
}
forward Actorpos();
public 
Actorpos() {
   
SetActorPos(ActorCJ1.02.03.0);
   return 
1;

so i mst put tis
Код:
SetTimer("Actorpos",2000,1);
	return 1;

}
forward Actorpos();
public Actorpos() {
   SetActorPos(ActorCJ, 1.0, 2.0, 3.0);
.....but can explain it??


Re: help me plz @@ - jlalt - 12.11.2015

Quote:
Originally Posted by sayaunta
Посмотреть сообщение
so i mst put tis
Код:
SetTimer("Actorpos",2000,1);
	return 1;

}
forward Actorpos();
public Actorpos() {
   SetActorPos(ActorCJ, 1.0, 2.0, 3.0);
.....but can explain it??
you never did any thing with Actor you just connect he and let he alone give he job to do and he gonna shut up xD