4 errors
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
The solution is here and it DOES work if you add it BEFORE line 138 (as global).
No!It doesn't!

Код:

#include 	<a_samp>
#include 	<YSI\y_ini>
#include 	<zcmd>
#include 	<sscanf2>
#include 	<foreach>
#include 	<streamer>

new Text:Spec0[MAX_PLAYERS]; // add it on top ;D



public OnPlayerConnect(playerid)
{


	foreach(new i: Player)
	{
 		SetPVarInt(i, "laser", 0);
   		SetPVarInt(i, "color", 18643);
     }
    for(new playerid; playerid < MAX_PLAYERS; playerid ++)
	{
	    StartTextdraw[0][playerid] = TextDrawCreate(0.000000, 0.000000, "loadsc9:loadsc9");
		TextDrawBackgroundColor(StartTextdraw_[0][playerid], 255);
		TextDrawFont(StartTextdraw_[0][playerid], 4);
		TextDrawLetterSize(StartTextdraw_[0][playerid], 0.500000, 1.000000);
		TextDrawColor(StartTextdraw_[0][playerid], -1);
		TextDrawSetOutline(StartTextdraw_[0][playerid], 0);
		TextDrawSetProportional(StartTextdraw_[0][playerid], 1);
		TextDrawSetShadow(StartTextdraw_[0][playerid], 1);
		TextDrawUseBox(StartTextdraw_[0][playerid], 1);
		TextDrawBoxColor(StartTextdraw_[0][playerid], 255);
		TextDrawTextSize(StartTextdraw_[0][playerid], 640.000000, 405.000000);
		TextDrawSetSelectable(StartTextdraw_[0][playerid], 0);

		StartTextdraw_[1][playerid] = TextDrawCreate(0.000000, 406.000000, "BOX");
		TextDrawBackgroundColor(StartTextdraw_[1][playerid], 255);
		TextDrawFont(StartTextdraw_[1][playerid], 1);
		TextDrawLetterSize(StartTextdraw_[1][playerid], 0.000000, 5.000000);
		TextDrawColor(StartTextdraw_[1][playerid], -1);
		TextDrawSetOutline(StartTextdraw_[1][playerid], 0);
		TextDrawSetProportional(StartTextdraw_[1][playerid], 1);
		TextDrawSetShadow(StartTextdraw_[1][playerid], 1);
		TextDrawUseBox(StartTextdraw_[1][playerid], 1);
		TextDrawBoxColor(StartTextdraw_[1][playerid], 255);
		TextDrawTextSize(StartTextdraw_[1][playerid], 640.000000, 0.000000);
		TextDrawSetSelectable(StartTextdraw_[1][playerid], 0);

		StartTextdraw_[2][playerid] = TextDrawCreate(0.000000, 406.000000, "BOX");
		TextDrawBackgroundColor(StartTextdraw_[2][playerid], 255);
		TextDrawFont(StartTextdraw_[2][playerid], 1);
		TextDrawLetterSize(StartTextdraw_[2][playerid], 0.000000, -0.400000);
		TextDrawColor(StartTextdraw_[2][playerid], -1);
		TextDrawSetOutline(StartTextdraw_[2][playerid], 0);
		TextDrawSetProportional(StartTextdraw_[2][playerid], 1);
		TextDrawSetShadow(StartTextdraw_[2][playerid], 1);
		TextDrawUseBox(StartTextdraw_[2][playerid], 1);
		TextDrawBoxColor(StartTextdraw_[2][playerid], -1);
		TextDrawTextSize(StartTextdraw_[2][playerid], 640.000000, 0.000000);
		TextDrawSetSelectable(StartTextdraw_[2][playerid], 0);

		StartTextdraw_[3][playerid] = TextDrawCreate(10.000000, 409.000000, "Excel ~y~(0)");
		TextDrawBackgroundColor(StartTextdraw_[3][playerid], 255);
		TextDrawFont(StartTextdraw_[3][playerid], 3);
		TextDrawLetterSize(StartTextdraw_[3][playerid], 0.480000, 1.499999);
		TextDrawColor(StartTextdraw_[3][playerid], -1);
		TextDrawSetOutline(StartTextdraw_[3][playerid], 1);
		TextDrawSetProportional(StartTextdraw_[3][playerid], 1);
		TextDrawSetSelectable(StartTextdraw_[3][playerid], 0);

		StartTextdraw_[4][playerid] = TextDrawCreate(10.000000, 426.000000, "Welcome to cod6 golden warfare. Get ready to join the warfare...");
		TextDrawBackgroundColor(StartTextdraw_[4][playerid], 255);
		TextDrawFont(StartTextdraw_[4][playerid], 3);
		TextDrawLetterSize(StartTextdraw_[4][playerid], 0.250000, 1.099999);
		TextDrawColor(StartTextdraw_[4][playerid], -1);
		TextDrawSetOutline(StartTextdraw_[4][playerid], 1);
		TextDrawSetProportional(StartTextdraw_[4][playerid], 1);
		TextDrawSetSelectable(StartTextdraw_[4][playerid], 0);

		StartTextdraw_[5][playerid] = TextDrawCreate(593.000000, 409.000000, "COD6");
		TextDrawBackgroundColor(StartTextdraw_[5][playerid], 255);
		TextDrawFont(StartTextdraw_[5][playerid], 3);
		TextDrawLetterSize(StartTextdraw_[5][playerid], 0.480000, 1.499999);
		TextDrawColor(StartTextdraw_[5][playerid], 16711935);
		TextDrawSetOutline(StartTextdraw_[5][playerid], 1);
		TextDrawSetProportional(StartTextdraw_[5][playerid], 1);
		TextDrawSetSelectable(StartTextdraw_[5][playerid], 0);


 	}
	return 1;
}

}
Код:
C:\Users\Andrijana\Desktop\SAMP\filterscripts\Untitled.pwn(23) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\Users\Andrijana\Desktop\SAMP\filterscripts\Untitled.pwn(25) : error 017: undefined symbol "StartTextdraw"
C:\Users\Andrijana\Desktop\SAMP\filterscripts\Untitled.pwn(25) : warning 215: expression has no effect
C:\Users\Andrijana\Desktop\SAMP\filterscripts\Untitled.pwn(25) : error 001: expected token: ";", but found "]"
C:\Users\Andrijana\Desktop\SAMP\filterscripts\Untitled.pwn(25) : error 029: invalid expression, assumed zero
C:\Users\Andrijana\Desktop\SAMP\filterscripts\Untitled.pwn(25) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply


Messages In This Thread
4 errors - by boomerboom - 28.10.2013, 11:41
Re: 4 errors - by -=Dar[K]Lord=- - 28.10.2013, 11:43
Re: 4 errors - by Arithmetic - 28.10.2013, 11:43
Re: 4 errors - by SAMProductions - 28.10.2013, 11:54
Re: 4 errors - by boomerboom - 28.10.2013, 18:31
Re: 4 errors - by Konstantinos - 28.10.2013, 18:44
Re: 4 errors - by boomerboom - 28.10.2013, 18:47
Re: 4 errors - by Pottus - 28.10.2013, 18:48
Re: 4 errors - by boomerboom - 28.10.2013, 18:51
Re: 4 errors - by Konstantinos - 28.10.2013, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)