Question

Вот код: 

if(clickedid == Text:INVALID_TEXT_DRAW)
{
else if(clickedid == CLICK)//Жалуется на эту строку
{
	ShowPlayerDialogFix(playerid, dialog_OK, DIALOG_STYLE_MSGBOX, "{00BFFF}Поздравляем","{ffffff}Хоть что-то у нас получилось", "Выход", "");
}

TextDrawHideForPlayer(playerid, CLICK);
CancelSelectTextDraw(playerid);
}

ошибки

C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 029: invalid expression, assumed zero
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : warning 215: expression has no effect
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 001: expected token: ";", but found "if"
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 033: array must be indexed (variable "CLICK")
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : fatal error 107: too many error messages on one line

 

Share this post


Link to post

14 answers to this question

  • 0
if(clickedid == Text:INVALID_TEXT_DRAW)
{
    if(clickedid == CLICK)
    {
        ShowPlayerDialogFix(playerid, dialog_OK, DIALOG_STYLE_MSGBOX, "{00BFFF}Поздравляем","{ffffff}Хоть что-то у нас получилось", "Выход", "");
    }

    TextDrawHideForPlayer(playerid, CLICK);
    CancelSelectTextDraw(playerid);
}

 

Edited by MuhammadPawn

Share this post


Link to post
  • 0

@MuhammadPawn 

C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 033: array must be indexed (variable "CLICK")
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17247) : error 035: argument type mismatch (argument 2)
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17252) : warning 217: loose indentation
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(19283) : error 035: argument type mismatch (argument 1)
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(19284) : error 035: argument type mismatch (argument 1)
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(21710) : error 035: argument type mismatch (argument 1)
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(21711) : error 035: argument type mismatch (argument 1)

 

Share this post


Link to post
  • 0
if(clickedid == Text:INVALID_TEXT_DRAW)
{
    if(CLICK[playerid] == 1)
    {
        ShowPlayerDialogFix(playerid, dialog_OK, DIALOG_STYLE_MSGBOX, "{00BFFF}Поздравляем","{ffffff}Хоть что-то у нас получилось", "Выход", "");
    }

    TextDrawHideForPlayer(playerid, CLICK);
    CancelSelectTextDraw(playerid);
}

 

Share this post


Link to post
  • 0

@RaZoR4D 

C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 028: invalid subscript (not an array or too many subscripts): "CLICK"
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : warning 215: expression has no effect
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 001: expected token: ";", but found "]"
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 029: invalid expression, assumed zero
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : fatal error 107: too many error messages on one line

 

Share this post


Link to post
  • 0

@Remmi_Feed 

if(clickedid == Text:INVALID_TEXT_DRAW)
{
    if(CLICK[playerid] == 1)
    {
        ShowPlayerDialogFix(playerid, dialog_OK, DIALOG_STYLE_MSGBOX, "{00BFFF}Поздравляем","{ffffff}Хоть что-то у нас получилось", "Выход", "");
    }

    TextDrawHideForPlayer(playerid, CLICK[playerid]);
    CancelSelectTextDraw(playerid);
}

Будут ошибки - скидывай как объявлено CLICK (new click)

Share this post


Link to post
  • 0

@DEST 

new Text:CLICK;
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 028: invalid subscript (not an array or too many subscripts): "CLICK"
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : warning 215: expression has no effect
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 001: expected token: ";", but found "]"
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : error 029: invalid expression, assumed zero
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : fatal error 107: too many error messages on one line

 

Edited by Remmi_Feed

Share this post


Link to post
  • 0

@Remmi_Feed а лучше в new заменить:
 

new Text: CLICK[MAX_PLAYERS]; 

 

Share this post


Link to post
  • 0

@DEST 

C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17242) : warning 213: tag mismatch
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(17252) : warning 217: loose indentation
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(19273) : error 028: invalid subscript (not an array or too many subscripts): "CLICK"
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(19273) : warning 215: expression has no effect
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(19273) : error 001: expected token: ";", but found "]"
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(19273) : error 029: invalid expression, assumed zero
C:\Users\Александр\Desktop\Revin\gamemodes\new.pwn(19273) : fatal error 107: too many error messages on one line

вот пример на автосалоне

Спойлер

    if(clickedid == Text:INVALID_TEXT_DRAW && PLAYER_DATA[playerid][data_CLICKTD] == true)
    {
        if(PLAYER_DATA[playerid][data_OPENCASINO] == true)
        {
            HideCasinoGame(playerid);
            casino_stavka[playerid] = 0;
			casino_update[playerid] = 0;
			KillTimer(casino_timer[playerid]);
            return true;
        }
  		if(PLAYER_DATA[playerid][data_CLOTHESMENU] == true)
		{
			TextDrawHideForPlayer(playerid, buy_clothes[0]);
		  	TextDrawHideForPlayer(playerid, buy_clothes[1]);
		  	TextDrawHideForPlayer(playerid, buy_clothes[2]);
		  	TextDrawHideForPlayer(playerid, buy_clothes[3]);
		  	TextDrawHideForPlayer(playerid, buy_clothes[4]);
		  	TextDrawHideForPlayer(playerid, buy_clothes[5]);
		  	PlayerTextDrawHide(playerid, buy_clothes_m[playerid]);
 			PLAYER_DATA[playerid][data_CLICKTD] = false;
 			PLAYER_DATA[playerid][data_CLOTHESMENU] = false;
 			SetPlayerSkinAC(playerid,PLAYER_DATA[playerid][data_SKIN]);

 			new b = GetPVarInt(playerid,"Clothes_biz");
 			SetPlayerPosAC(playerid,BUSINESS_DATA[b][data_EXITX],BUSINESS_DATA[b][data_EXITY],BUSINESS_DATA[b][data_EXITZ]);
    		SetPlayerInterior(playerid,BUSINESS_DATA[b][data_INT]);
    		SetPlayerVirtualWorld(playerid,BUSINESS_DATA[b][data_VW]);
    		FreezePlayer(playerid);
			SetTimerEx("UnfreezePlayer", 4000, false, "d", playerid);
			SetCameraBehindPlayer(playerid);
 			CancelSelectTextDraw(playerid);
			return true;
		}
  		if(PLAYER_DATA[playerid][data_OPENAUTOSALON] == true)
		{
  			DestroyVehicle(PLAYER_DATA[playerid][data_AUTOSALON_CAR]);
  			PLAYER_DATA[playerid][data_AUTOSALON_CAR] = INVALID_VEHICLE_ID;
			HideAutoSalonMenu(playerid);

			SetPlayerInterior(playerid,0);
			SetPlayerVirtualWorld(playerid,0);
			SetPlayerPosAC(playerid,446.4218,357.0569,12.1766);
			SetCameraBehindPlayer(playerid);
//==========================================================================================================================================
			return true;
		}
	}

 

 

Share this post


Link to post
  • 0

@DEST жалуется на эти строки

if(CLICK == 1)
}

Дальше идет на другие TD

Share this post


Link to post
  • 0

@Remmi_Feed CLICK нужно заменить на CLICK[playerid]

Share this post


Link to post
  • 0

@DEST теперь на эту строку выпало: 

C:\Users\Àëåêñàíäð\Desktop\Revin\gamemodes\new.pwn(17242) : error 028: invalid subscript (not an array or too many subscripts): "CLICK"
C:\Users\Àëåêñàíäð\Desktop\Revin\gamemodes\new.pwn(17242) : warning 215: expression has no effect
C:\Users\Àëåêñàíäð\Desktop\Revin\gamemodes\new.pwn(17242) : error 001: expected token: ";", but found "]"
C:\Users\Àëåêñàíäð\Desktop\Revin\gamemodes\new.pwn(17242) : error 029: invalid expression, assumed zero
C:\Users\Àëåêñàíäð\Desktop\Revin\gamemodes\new.pwn(17242) : fatal error 107: too many error messages on one line

 

Share this post


Link to post
  • 0

@Remmi_Feed new заменил? 

Share this post


Link to post
  • 0

@DEST @DEST и так и так

 

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content