Jump to content
  • 0

Compiler stoped working!


Colenelu

Question

Nick:Colonelul

Problema:Deci am creat o comanda si dupa ce dau compiler imediat dupa cateva secuinde mi se opreste!Dar daca sterg comanda mi se compileaza totul!

Erori / warnings:

Lini/script:

}
CMD:cumparamasina([layerid,parms[])
{
     if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0) return SendClientMessage)playerid,COLOR_WITHE,"Nu esti la dealership!");
	 return1;
	 }

Ai incercat sa rezolvi singur ?:Da

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

Nick:Colonelul

Problema:Deci am creat o comanda si dupa ce dau compiler imediat dupa cateva secuinde mi se opreste!Dar daca sterg comanda mi se compileaza totul!

Erori / warnings:

Lini/script:

}
CMD:cumparamasina([layerid,parms[])
{
     if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0) return SendClientMessage)playerid,COLOR_WITHE,"Nu esti la dealership!");
	 return1;
	 }

Ai incercat sa rezolvi singur ?:Da

pai ai scris [layerid inloc de playerid.

si return1; inloc de return 1;

8ffTNVU.png

Link to comment
Share on other sites

acum nu  mi s mai opreste imi da niste waringuri!!

Carbon.pwn(70267) : warning 203: symbol is never used: "ButonTesteaza"
Carbon.pwn(70267) : warning 203: symbol is never used: "ButonUrmatori"
Carbon.pwn(70267) : warning 203: symbol is never used: "DealerMasina"
Carbon.pwn(70267) : warning 203: symbol is never used: "DealerPret"
Carbon.pwn(70267) : warning 203: symbol is never used: "Linie"
desi le folosesc:
Linie[playerid] = TextDrawCreate(641.500000, 227.739990, "usebox");
ButonUrmatori[playerid] = TextDrawCreate(536.500000, 226.800003, "Urmatorul");
DealerMasina[playerid] = TextDrawCreate(110.000000, 226.240066, "Masina:Infernus");
DealerPret[playerid] = TextDrawCreate(296.500000, 226.800003, "Pret:999,999,999$");

Link to comment
Share on other sites

TextDrawSetSelectable(ButonInapoi[playerid], 1);
Carbon.pwn(4633) : error 001: expected token: ",", but found "-integer value-"
Carbon.pwn(4633) : warning 215: expression has no effect
Carbon.pwn(4633) : error 001: expected token: ";", but found ")"
Carbon.pwn(4633) : error 029: invalid expression, assumed zero
Carbon.pwn(4633) : fatal error 107: too many error messages on one line

Deci nu stiu ce are :( ma uit la ea de 30 de minute si nu stiu ce e gresit cu virgula aia !

Link to comment
Share on other sites

TextDrawSetSelectable(ButonInapoi[playerid], 1);
Carbon.pwn(4633) : error 001: expected token: ",", but found "-integer value-"
Carbon.pwn(4633) : warning 215: expression has no effect
Carbon.pwn(4633) : error 001: expected token: ";", but found ")"
Carbon.pwn(4633) : error 029: invalid expression, assumed zero
Carbon.pwn(4633) : fatal error 107: too many error messages on one line

Deci nu stiu ce are :( ma uit la ea de 30 de minute si nu stiu ce e gresit cu virgula aia !

Da-ne tot textdraw-ul, poate este gresit ceva la linia anterioara

Link to comment
Share on other sites

ButonInapoi[playerid] = TextDrawCreate(1.500000, 226.800018, "Inapoi");
	TextDrawLetterSize(ButonInapoi[playerid], 0.449999, 1.600000);
	TextDrawAlignment(ButonInapoi[playerid], 1);
	TextDrawColor(ButonInapoi[playerid], -1);
	TextDrawSetShadow(ButonInapoi[playerid], 0);
	TextDrawSetOutline(ButonInapoi[playerid], 1);
	TextDrawBackgroundColor(ButonInapoi[playerid], 51);
	TextDrawFont(ButonInapoi[playerid], 1);
	TextDrawSetProportional(ButonInapoi[playerid], 1);
	TextDrawSetSelectable(ButonInapoi[playerid], 1);

Link to comment
Share on other sites

Incearca:

ButonInapoi[playerid] = CreatePlayerTextDraw(playerid, .500000, 226.800018, "Inapoi");
    PlayerTextDrawLetterSize(playerid,ButonInapoi[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawColor(playerid,ButonInapoi[playerid], -1);
    PlayerTextDrawSetShadow(playerid,ButonInapoi[playerid], 0);
    PlayerTextDrawSetOutline(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid,ButonInapoi[playerid], 51);
    PlayerTextDrawFont(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawSetProportional(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawSetSelectable(playerid,ButonInapoi[playerid], 1);

Pune-l la OnPlayerConnect!

Link to comment
Share on other sites

Dintrodata mi-au aparut mai multe errori

Carbon.pwn(2326) : error 017: undefined symbol "WasteDeAMXersTime"
Carbon.pwn(2989) : error 017: undefined symbol "LoopingAnim"
Carbon.pwn(2990) : error 017: undefined symbol "LoopingAnim"
Carbon.pwn(2991) : error 017: undefined symbol "LoopingAnim"
Carbon.pwn(3105) : error 017: undefined symbol "PentruPlayerUpdate"
Carbon.pwn(3127) : error 017: undefined symbol "IsPlayerInRange"
2326 WasteDeAMXersTime();
2985 public OprestePlayer(playerid)
{
	if(IsPlayerConnected(playerid))
 	{
2989		        LoopingAnim(playerid,"PED","SEAT_idle", 4.0, 1, 0, 0, 0, 0);
2990		        LoopingAnim(playerid,"PED","SEAT_idle", 4.0, 1, 0, 0, 0, 0);
2991		        LoopingAnim(playerid,"PED","SEAT_idle", 4.0, 1, 0, 0, 0, 0);
		        SetPlayerCameraPos(playerid,2089.1912,-1142.6049,85.0929);
                SetPlayerCameraLookAt(playerid,1842.1843,-1243.7405,32.1835);
				TogglePlayerControllable(playerid, 0);
	}
3105 PentruPlayerUpdate();
3127 if(IsPlayerInRange(o,20,20, x1,y1,z1))

Link to comment
Share on other sites

Carbon.pwn(4312) : error 004: function "PlayerToPoint" is not implemented
Carbon.pwn(4316) : error 004: function "PlayerToPoint" is not implemented
public IsAtClothShop(playerid)
{
    if(IsPlayerConnected(playerid))
	{
         if(PlayerToPoint(25.0, playerid, 207.5627,-103.7291,1005.2578) || !PlayerToPoint(25.0, playerid, 203.9068,-41.0728,1001.8047))
		{//Binco & Suburban
		    return 1;
		}
		else if(!PlayerToPoint(30.0, playerid, 214.4470,-7.6471,1001.2109) || !PlayerToPoint(50.0, playerid, 161.3765,-83.8416,1001.8047))
		{//Zip & Victim
		    return 1;
		}
	}
	return 0;
}

Link to comment
Share on other sites

pai unde ca inainte sa fac comanda asta totul mergea bine!

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
	if(clickedid == ButonInapoi[playerid])
	{
		 SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul inapoi.");
	}
    if(clickedid == ButonUrmator[playerid])
	{
	  SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul urmator.");
	}
	if(clickedid == ButonCumpara[playerid])
	{
	  SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul cumpara.");
	}
	if(clickedid == ButonTesteaza[playerid])
	{
	  SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul testeaza.");
	}
	if(clickedid == ButonAnuleaza[playerid])
	{
	  SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul anuleaza.");
	}
CMD:cumparamasina(playerid,params[ ])
{
     if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0) return SendClientMessage(playerid,COLOR_WHITE,"Nu esti la dealership!");
    TogglePlayerControllable(playerid, 0); 
	SelectTextDraw(playerid, 0x00FF00FF);
	TextDrawShowForPlayer(playerid,Linie[playerid]);
	TextDrawShowForPlayer(playerid,ButonInapoi[playerid]);
	TextDrawShowForPlayer(playerid,ButonUrmator[playerid]);
	TextDrawShowForPlayer(playerid,DealerMasina[playerid]);
	TextDrawShowForPlayer(playerid,DealerPret[playerid]);
	TextDrawShowForPlayer(playerid,ButonCumpara[playerid]);
	TextDrawShowForPlayer(playerid,ButonTesteaza[playerid]);
	TextDrawShowForPlayer(playerid,ButonAnuleaza[playerid]);
	 return 1;
     }

Link to comment
Share on other sites

Exact cum ti-am spus in postul anterior, lipseste o acolada la un callback.

Inlocuieste OnPlayerClickTextDraw actual, cu acesta:

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == ButonInapoi[playerid])
    {
         SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul inapoi.");
    }
    if(clickedid == ButonUrmator[playerid])
    {
      SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul urmator.");
    }
    if(clickedid == ButonCumpara[playerid])
    {
      SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul cumpara.");
    }
    if(clickedid == ButonTesteaza[playerid])
    {
      SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul testeaza.");
    }
    if(clickedid == ButonAnuleaza[playerid])
    {
      SendClientMessage(playerid,COLOR_WITHE,'Ai dat click pe butonul anuleaza.");
    }
    return 1;
}

Link to comment
Share on other sites

Carbon.pwn(4632) : error 001: expected token: ",", but found "-integer value-"
Carbon.pwn(4632) : warning 215: expression has no effect
Carbon.pwn(4632) : error 001: expected token: ";", but found ")"
Carbon.pwn(4632) : error 029: invalid expression, assumed zero
Carbon.pwn(4632) : fatal error 107: too many error messages on one line
ButonInapoi[playerid] = CreatePlayerTextDraw(playerid, .500000, 226.800018, "Inapoi");
    PlayerTextDrawLetterSize(playerid,ButonInapoi[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawColor(playerid,ButonInapoi[playerid], -1);
    PlayerTextDrawSetShadow(playerid,ButonInapoi[playerid], 0);
    PlayerTextDrawSetOutline(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid,ButonInapoi[playerid], 51);
    PlayerTextDrawFont(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawSetProportional(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawSetSelectable(playerid,ButonInapoi[playerid], 1)

Link to comment
Share on other sites

Nu prea iti dai interesul, sa verifici si tu fiecare linie.

ButonInapoi[playerid] = CreatePlayerTextDraw(playerid, .500000, 226.800018, "Inapoi");
    PlayerTextDrawLetterSize(playerid,ButonInapoi[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawColor(playerid,ButonInapoi[playerid], -1);
    PlayerTextDrawSetShadow(playerid,ButonInapoi[playerid], 0);
    PlayerTextDrawSetOutline(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid,ButonInapoi[playerid], 51);
    PlayerTextDrawFont(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawSetProportional(playerid,ButonInapoi[playerid], 1);
    PlayerTextDrawSetSelectable(playerid,ButonInapoi[playerid], 1);

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.