Jump to content
  • 0

Imi puteti da o idee?


heker

Question

Salut am si eu de exemplu comanda /arrest.

Pot da arest de aicea:

if(!PlayerToPoint(6.0, playerid, 1525.9470, -1678.3567, 5.6114))

dar eu vreau si din alte parte...am incercat

if(!PlayerToPoint(6.0, playerid, 1525.9470, -1678.3567, 5.6114) || (PlayerToPoint(6.0, playerid, X, Y, Z))

dar nu mere...imi puteti da o idee

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

 if(!PlayerToPoint(6.0, playerid, 1525.9470, -1678.3567, 5.6114) || (PlayerToPoint(6.0, playerid, X, Y, Z))
 

Tu observi ca la primul playertopoint ai un '!' in fata ?

if(!PlayerToPoint(6.0, playerid, 1525.9470, -1678.3567, 5.6114) - acel '!' inseamna negatie , adica : Daca nu e la coordonatele acelea.

Sterge acel '!' si vezi apoi.

Link to comment
Share on other sites

 if(!PlayerToPoint(6.0, playerid, 1525.9470, -1678.3567, 5.6114) || (PlayerToPoint(6.0, playerid, X, Y, Z))
 
Tu observi ca la primul playertopoint ai un '!' in fata ? if(!PlayerToPoint(6.0, playerid, 1525.9470, -1678.3567, 5.6114) - acel '!' inseamna negatie , adica : Daca nu e la coordonatele acelea. Sterge acel '!' si vezi apoi.
la el comanda e ceva in genul:
 if(!PlayerToPoint(6.0, playerid, 1525.9470, -1678.3567, 5.6114))
{
    SendClientMessage(playerid, COLOR_WHITE, "Nu esti langa jail");
   return 1;
}
 
deci ca sa iti mearga pune un "!" si dupa 'sau' ( || ) adica ceva in genul
 if((!PlayerToPoint(6.0, playerid, 1525.9470, -1678.3567, 5.6114)) || (!PlayerToPoint(6.0, playerid, X, Y, Z))) 
daca nu merge, incearca:
 if( PlayerToPoint(3.0, playerid,1525.9470, -1678.3567, 5.6114) || PlayerToPoint(3.0, playerid,X, Y, Z))
				{
				}
				else
				{
				    SendClientMessage(playerid, COLOR_WHITE, " Nu esti langa jail");
				    return 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.