Jump to content
  • 0

Erroare ! nu pot scapa de ea !


Question

Posted

Salutare am si eu o problema cu 2 errori si nise warnings , ma poate ajuta si pe mine cineva? nu le pot da de cap

error 029: invalid expression, assumed zero

error 004: function "ReactionTest" is not implemented

warning 219: local variable "string" shadows a variable at a preceding level

warning 225: unreachable code

warning 204: symbol is assigned a value that is never used: "ReactionState"

public ReactionTest()

    {

KillTimer(ReactionTimer);

new string[80];

if(PassiveMode == PASSIVE_OFF)

{

new Rstr[] = "aAbBcCdDeEfFgGhHIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789";//Characters that will appear in the reaction test. Small "i" removed as it looks the same as a capital "i" in game.

for (new i = 0; i < 9; i++)ReactionString = Rstr[random(sizeof(Rstr))];

ReactionCash = random( MAX_WINNINGS - MIN_WINNINGS ) + MIN_WINNINGS;

}

else PassiveMode = PASSIVE_OFF;

ReactionState = R_STATE_ACTIVE;

format(string,sizeof(string),"Primul care scrie %s castiga %d$!",ReactionString,ReactionCash);

SendClientMessageToAll(0xDA1800FF,string);

ReactionTimer = SetTimer("ReactionTest",REACTION_TIME*1000*60,true);

return 1;

    }

SERVER :TraficGames| LosSantos | Roleplay

ADDRESS : 89.42.200.35:7777

7 answers to this question

Recommended Posts

Posted

public ReactionTest()

    {

  KillTimer(ReactionTimer);

  new string[80];

  if(PassiveMode == PASSIVE_OFF)

  {

      new Rstr[] = "aAbBcCdDeEfFgGhHIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789";//Characters that will appear in the reaction test. Small "i" removed as it looks the same as a capital "i" in game.

      for (new i = 0; i < 9; i++)ReactionString = Rstr[random(sizeof(Rstr))];

      ReactionCash = random( MAX_WINNINGS - MIN_WINNINGS ) + MIN_WINNINGS;

  }

  else PassiveMode = PASSIVE_OFF;

  {

  format(string,sizeof(string),"Primul care scrie %s castiga %d$!",ReactionString,ReactionCash);

  SendClientMessageToAll(0xDA1800FF, string);

  ReactionTimer = SetTimer("ReactionTest",REACTION_TIME*1000*60,true);

  }

  return 1;

  }

incearca asa

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

public ReactionTest()

    {

  KillTimer(ReactionTimer);

  new string[80];

  if(PassiveMode == PASSIVE_OFF)

  {

      new Rstr[] = "aAbBcCdDeEfFgGhHIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789";//Characters that will appear in the reaction test. Small "i" removed as it looks the same as a capital "i" in game.

      for (new i = 0; i < 9; i++)ReactionString = Rstr[random(sizeof(Rstr))];

      ReactionCash = random( MAX_WINNINGS - MIN_WINNINGS ) + MIN_WINNINGS;

  }

  else PassiveMode = PASSIVE_OFF;

  {

  format(string,sizeof(string),"Primul care scrie %s castiga %d$!",ReactionString,ReactionCash);

  SendClientMessageToAll(0xDA1800FF, string);

  ReactionTimer = SetTimer("ReactionTest",REACTION_TIME*1000*60,true);

  }

  return 1;

  }

incearca asa

Nu stii, nu te baga.

Inlocuieste-ti codul cu asta:

forward ReactionTest();
public ReactionTest()
{
	KillTimer(ReactionTimer);
	new rtString[80];
	if(ReactionState == PASSIVE_OFF)
	{
		new Rstr[] = "aAbBcCdDeEfFgGhHIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789";//Characters that will appear in the reaction test. Small "i" removed as it looks the same as a capital "i" in game.
		for (new i = 0; i < 9; i++)ReactionrtString = Rstr[random(sizeof(Rstr))];
		ReactionCash = random( MAX_WINNINGS - MIN_WINNINGS ) + MIN_WINNINGS;
	}
	else ReactionState = PASSIVE_OFF;
	ReactionState = R_STATE_ACTIVE;
	format(rtString,sizeof(rtString),"Primul care scrie %s castiga %d$!",ReactionrtString,ReactionCash);
	SendClientMessageToAll(0xDA1800FF,rtString);
	ReactionTimer = SetTimer("ReactionTest",REACTION_TIME*1000*60,true);
	return 1;
}

Posted

tot nu merge , cum ai zis si tu unde nu sti nu te baga ! ... ma chinui de dimineata sa caut sa il fac si nu pot , o sa caut un scripter.. ms oricum.

SERVER :TraficGames| LosSantos | Roleplay

ADDRESS : 89.42.200.35:7777

Posted

tot nu merge , cum ai zis si tu unde nu sti nu te baga ! ... ma chinui de dimineata sa caut sa il fac si nu pot , o sa caut un scripter.. ms oricum.

Daca cineva ar da si ce erori da dupa ce a pus ce i-am dat eu ...

POSTEAZA ERORILE GENIULE !

Posted
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(13673) : warning 213: tag mismatch
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(13673) : warning 202: number of arguments does not match definition
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41883) : error 029: invalid expression, assumed zero
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41883) : error 017: undefined symbol "ReactionTest"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41884) : error 029: invalid expression, assumed zero
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41884) : error 017: undefined symbol "ReactionTest"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41891) : error 017: undefined symbol "ReactionrtString"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41896) : error 017: undefined symbol "ReactionrtString"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41903) : warning 225: unreachable code
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(44672) : warning 203: symbol is never used: "PassiveMode"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(44672) : warning 203: symbol is never used: "ReactionString"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

SERVER :TraficGames| LosSantos | Roleplay

ADDRESS : 89.42.200.35:7777

Posted

C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(13673) : warning 213: tag mismatch
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(13673) : warning 202: number of arguments does not match definition
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41883) : error 029: invalid expression, assumed zero
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41883) : error 017: undefined symbol "ReactionTest"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41884) : error 029: invalid expression, assumed zero
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41884) : error 017: undefined symbol "ReactionTest"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41891) : error 017: undefined symbol "ReactionrtString"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41896) : error 017: undefined symbol "ReactionrtString"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(41903) : warning 225: unreachable code
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(44672) : warning 203: symbol is never used: "PassiveMode"
C:\Users\ShoBBy\Desktop\New folder\NewGM.pwn(44672) : warning 203: symbol is never used: "ReactionString"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

Nu e doar de la liniile care ni le-ai dat. Si asigura-te ca ai alea definite in script sus.

Titlul. ( acum am vazut )

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.