Jump to content
  • 0

Problema /agoto


Mr.LeX2011

Question

am facut si eu o comanda pentru admin mai exact pentru teleporturi,comanda este /agoto este un dialog in care admini dau dublu click pe locatia dorita si am facut comanda si nu mai stiu cum sa fac daca nu esti admin sati zica "Nu Ai Voie SA Folosesti aceasta comanda"

uitati comanda:

[pawn]

if (strcmp(cmd, "/agoto", true) == 0)

{

if(PlayerToPoint(5.0,playerid,1582.5625,-1686.9138,6.218 || PlayerToPoint(5.0,playerid,242.6930,66.4504,1003.6 406) || PlayerToPoint(5.0,playerid,1565.1204,-1666.1179,28.3956))

{

if(PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pHelper] == 1)

{

ShowPlayerDialog(playerid, agoto, DIALOG_STYLE_LIST, "..::: Goto BlackPedia :::..", "{FF1400}LoS Santos\n{FFB400}Mountain Chiliad\n{DCDCDC}Aeroport San Fierro\n{DCDCDC}Gara San Fierro\n{DCDCDC}Plaja Los Santos\n{DCDCDC}VAMA=LS-SF-LV\n{DCDCDC}Aeroport LaS VenTuRaS\n{DCDCDC}LaS VenTuRaS", "Apasa", "Iesi");

return SendClientMessage(playerid,COLOR_GREEN,"Apasa pe locatia unde vrei sa te duci!");

}

}

}[/pawn]

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

[pawn]if (strcmp(cmd, "/agoto", true) == 0)

{

if(PlayerToPoint(5.0,playerid,1582.5625,-1686.9138,6.218 || PlayerToPoint(5.0,playerid,242.6930,66.4504,1003.6 406) || PlayerToPoint(5.0,playerid,1565.1204,-1666.1179,28.3956))

{

if(PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pHelper] == 1)

{

ShowPlayerDialog(playerid, agoto, DIALOG_STYLE_LIST, "..::: Goto BlackPedia :::..", "{FF1400}LoS Santos\n{FFB400}Mountain Chiliad\n{DCDCDC}Aeroport San Fierro\n{DCDCDC}Gara San Fierro\n{DCDCDC}Plaja Los Santos\n{DCDCDC}VAMA=LS-SF-LV\n{DCDCDC}Aeroport LaS VenTuRaS\n{DCDCDC}LaS VenTuRaS", "Apasa", "Iesi");

return SendClientMessage(playerid,COLOR_GREEN,"Apasa pe locatia unde vrei sa te duci!");

}

else

{

SendClientMessage(playerid, Culoare, "Nu ai acces la aceasta comanda !");

}

}

}[/pawn]

Incearca asa

gXvsYS
Link to comment
Share on other sites

C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : error 001: expected token: ",", but found "-integer value-"

C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : warning 215: expression has no effect

C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : error 001: expected token: ";", but found ")"

C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : error 029: invalid expression, assumed zero

C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

da dar acolo eu aveam alte save uitele:

[pawn]if(PlayerToPoint(5.0,playerid,1529.6000,-1691.2000,13.3828) || PlayerToPoint(5.0,playerid,-2310.6301,-1638.3312,483.7031) || PlayerToPoint(5.0,playerid,-1416.9376,-296.1671,14.1484 || PlayerToPoint(5.0,playerid,-1973.0111,137.3701,27.6875 || PlayerToPoint(5.0,playerid,337.0858,-1781.2639,5.0973 || PlayerToPoint(5.0,playerid,89.3198,-1568.9939,8.6498 || PlayerToPoint(5.0,playerid,1548.3535,1521.2260,10.8469 || PlayerToPoint(5.0,playerid,1705.9506,1451.1368,10.8174))[/pawn]

linia e ata dar cand rez erorile o inlocuiesc cu cea de mai sus

Link to comment
Share on other sites

Pune asa

[pawn]if(PlayerToPoint(5.0,playerid,1529.6000,-1691.2000,13.3828) || PlayerToPoint(5.0,playerid,-2310.6301,-1638.3312,483.7031) || PlayerToPoint(5.0,playerid,-1416.9376,-296.1671,14.1484) || PlayerToPoint(5.0,playerid,-1973.0111,137.3701,27.6875) || PlayerToPoint(5.0,playerid,337.0858,-1781.2639,5.0973) || PlayerToPoint(5.0,playerid,89.3198,-1568.9939,8.6498) || PlayerToPoint(5.0,playerid,1548.3535,1521.2260,10.8469) || PlayerToPoint(5.0,playerid,1705.9506,1451.1368,10.8174))[/pawn]

gXvsYS
Link to comment
Share on other sites

Ia vezi daca Merge

[pawn]if (strcmp(cmd, "/agoto", true) == 0)

{

if(PlayerToPoint(5.0,playerid,1582.5625,-1686.9138,6.218 || PlayerToPoint(5.0,playerid,242.6930,66.4504,1003.6 406) || PlayerToPoint(5.0,playerid,1565.1204,-1666.1179,28.3956))

{

if(PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pHelper] == 1) || IsPlayerAdmin(playerid))

{

ShowPlayerDialog(playerid, agoto, DIALOG_STYLE_LIST, "..::: Goto BlackPedia :::..", "{FF1400}LoS Santos\n{FFB400}Mountain Chiliad\n{DCDCDC}Aeroport San Fierro\n{DCDCDC}Gara San Fierro\n{DCDCDC}Plaja Los Santos\n{DCDCDC}VAMA=LS-SF-LV\n{DCDCDC}Aeroport LaS VenTuRaS\n{DCDCDC}LaS VenTuRaS", "Apasa", "Iesi");

return SendClientMessage(playerid,COLOR_GREEN,"Apasa pe locatia unde vrei sa te duci!");

}

}

}[/pawn]

560x95_FFFFFF_FF9900_000000_000000.png
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.