help me please
#1

i have all this errors on 1 line
Код:
C:\Users\KURDI\Desktop\Folders\Server\gamemodes\New.pwn(12371) : error 029: invalid expression, assumed zero
C:\Users\KURDI\Desktop\Folders\Server\gamemodes\New.pwn(12371) : error 012: invalid function call, not a valid address
C:\Users\KURDI\Desktop\Folders\Server\gamemodes\New.pwn(12371) : warning 215: expression has no effect
C:\Users\KURDI\Desktop\Folders\Server\gamemodes\New.pwn(12371) : error 001: expected token: ";", but found ")"
C:\Users\KURDI\Desktop\Folders\Server\gamemodes\New.pwn(12371) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Код:
	{
		  new HisName[MAX_PLAYER_NAME];
    	  GetPlayerName(enemyid, HisName, sizeof(HisName));
          new string[128];
 		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}%s a fost invitat la zaruri.", HisName);
		  SendClientMessage(playerid,0xFFFFFF,string);
		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}Ai fost invitat la niste zaruri de catre %s, suma : %i$", MyName, bet);
		  SendClientMessage(enemyid,0xFFFFFF,string);
 		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}Accepta folosind comanda [/acceptdice <playerid>]");
		  SendClientMessage(enemyid,0xFFFFFF,string);
		  format(string2,sizeof(string2),"%s",MyName);
          for(new i; i < MAX_PLAYERS; i++)
		  stock Name(playerid);
	new string[72];
	GetPlayerName(playerid, string, sizeof(string));
	return string;

          GetPlayerName(i, sendername, sizeof(sendername));
       	  new i[ MAX_PLAYER_NAME ];
          GetPlayerName(playerid,sendername, sizeof(i));
          currentplayer1 = GetPlayerId(i)
		  diceinvited[enemyid]=GetPlayerID(string2);
		}
	  }
	}

line errors
Код:
stock Name(playerid)
Reply
#2

Show us about 5 lines before this line, and 5 lines after..
Reply
#3

thats all
Код:
new diceinvited[MAX_PLAYERS]=255, bet;
CMD:dice(playerid, params[]){
new enemyid;
new MyName[MAX_PLAYER_NAME], string2[24+MAX_PLAYER_NAME];
GetPlayerName(playerid, MyName, sizeof(MyName));
if (sscanf(params, "ii", enemyid, bet))
{
  SendClientMessage(playerid, 0xFFFFFF, "{A80000}Cum se foloseste: {FFFFFF}/dice <playerid> <money>");
}
else
{
  if(enemyid != INVALID_PLAYER_ID)
  {
    if(enemyid != playerid)
    {
      if (bet<=1)
      {
	    SendClientMessage(playerid, 0xFFFFFF, "{A80000}RTD: {FFFFFF}Nu poti paria doar 1$.");
	  }
	  else if (bet>5000000)
	  {
		SendClientMessage(playerid, 0xFFFFFF, "{A80000}RTD: {FFFFFF}Din motive de securitate, limita maxima este de 5.000.000$.");
	  }
	  else
	  {
		new Banet=GetPlayerMoney(playerid);
		if (Banet<bet)
		{
		  new string[128];
		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}Nu ai destui bani, ai doar: $%i",Banet);
		  SendClientMessage(playerid,0xFFFFFF,string);
		}
		else
		{
		  new HisName[MAX_PLAYER_NAME];
    	  GetPlayerName(enemyid, HisName, sizeof(HisName));
          new string[128];
 		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}%s a fost invitat la zaruri.", HisName);
		  SendClientMessage(playerid,0xFFFFFF,string);
		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}Ai fost invitat la niste zaruri de catre %s, suma : %i$", MyName, bet);
		  SendClientMessage(enemyid,0xFFFFFF,string);
 		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}Accepta folosind comanda [/acceptdice <playerid>]");
		  SendClientMessage(enemyid,0xFFFFFF,string);
		  format(string2,sizeof(string2),"%s",MyName);
          for(new i; i < MAX_PLAYERS; i++)
		  stock Name(playerid);
	new string[72];
	GetPlayerName(playerid, string, sizeof(string));
	return string;

          GetPlayerName(i, sendername, sizeof(sendername));
       	  new i[ MAX_PLAYER_NAME ];
          GetPlayerName(playerid,sendername, sizeof(i));
          currentplayer1 = GetPlayerId(i)
		  diceinvited[enemyid]=GetPlayerID(string2);
		}
	  }
	}
	else
	{
	  SendClientMessage(playerid, 0xFFFFFF, "{A80000}RTD: {FFFFFF}Nu te poti invita singur.");
	}
  }
  else
  {
    SendClientMessage(playerid, 0xFFFFFF, "{A80000}RTD: {FFFFFF}Acest player nu este online.");
  }
}
return 1;

}
Reply
#4

? I said show me the error line, and 5 lines before it and 5 lines after it..
Reply
#5

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
? I said show me the error line, and 5 lines before it and 5 lines after it..
lol i showed you error line ?

and all errors _-

anyway i will say it again
This is error line
Код:
stock Name(playerid)
Reply
#6

I want to see line 12371 and 5 lines before it and 5 lines after, easy..
Reply
#7

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
I want to see line 12371 and 5 lines before it and 5 lines after, easy..
This line error 12371 !!!! !!
Код:
stock Name(playerid);
before 5 lines !

Код:
	  new HisName[MAX_PLAYER_NAME];
    	  GetPlayerName(enemyid, HisName, sizeof(HisName));
          new string[128];
 		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}%s a fost invitat la zaruri.", HisName);
		  SendClientMessage(playerid,0xFFFFFF,string);
		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}Ai fost invitat la niste zaruri de catre %s, suma : %i$", MyName, bet);
		  SendClientMessage(enemyid,0xFFFFFF,string);
 		  format(string,sizeof(string),"{A80000}RTD: {FFFFFF}Accepta folosind comanda [/acceptdice <playerid>]");
		  SendClientMessage(enemyid,0xFFFFFF,string);
		  format(string2,sizeof(string2),"%s",MyName);
          for(new i; i < MAX_PLAYERS; i++)

after 5 lines !!!!

Код:
	new string[72];
	GetPlayerName(playerid, string, sizeof(string));
	return string;

          GetPlayerName(i, sendername, sizeof(sendername));
       	  new i[ MAX_PLAYER_NAME ];
          GetPlayerName(playerid,sendername, sizeof(i));
          currentplayer1 = GetPlayerId(i)
		  diceinvited[enemyid]=GetPlayerID(string2);
		}
Reply
#8

when you make a stock for the first time, Do like the following

PHP код:
stock STOCKNAME() 
and then when you use it in a cmd or smth like that use it like that

PHP код:
STOCKNAME(); 
that's all..
Reply
#9

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
when you make a stock for the first time, Do like the following

PHP код:
stock STOCKNAME() 
and then when you use it in a cmd or smth like that use it like that

PHP код:
STOCKNAME(); 
that's all..
so what i replace the line error ?
Reply
#10

-.-, All what you've got to do, is just using the word "stock" only one time for defining the stock you want and the including functions, But when using That stock INSIDE a COMMAND or a FUNCTION remove the word STOCK and add ";" after the name of the stock, EASY.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)