Comico
Membru-
Posts
12 -
Joined
-
Last visited
Never
Comico's Achievements
-
Eu sa plec?
-
Cum schot din gm-ul asta [pawn]http://fisierulmeu.ro/39MNRN3SHHUV/RomaniaLifeRPG-pwn.html[/pawn] fs de case de masini si de conectare
-
Explicati-mi cum adaug masini pe modelul acesta
Comico replied to wildewill21's question in Arhivă probleme
Intri in samp te sui in masina care vrei scri save intri in C:\Users\Gabriela\Documents\GTA San Andreas User Files\SAMP si gasesti savedpositions acolo ai AddStaticVehicle(596,1574.5348,-1710.1077,5.6123,357.1164,0,1); si pui in gm -
Da dar cum le rezolv :D
-
[pawn]public CarTow(carid) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInVehicle(i, carid) || HireCar == carid) { gLastDriver[carid] = 255; return 0; } } } SetVehiclePos(carid,HouseCarSpawns[carid-1][0], HouseCarSpawns[carid-1][1], HouseCarSpawns[carid-1][2]); SetVehicleZAngle(carid, HouseCarSpawns[carid-1][3]); return 1; } [/pawn] uite
-
Dupa cum spune si titlul am o eroare la comprimarea unui GM Erorile [pawn]D:\Samp\samp03x\gamemodes\RomaniaLifeRPG.pwn(1645) : error 029: invalid expression, assumed zero D:\Samp\samp03x\gamemodes\RomaniaLifeRPG.pwn(1645) : warning 215: expression has no effect D:\Samp\samp03x\gamemodes\RomaniaLifeRPG.pwn(1645) : error 001: expected token: ";", but found "]" D:\Samp\samp03x\gamemodes\RomaniaLifeRPG.pwn(1645) : error 029: invalid expression, assumed zero D:\Samp\samp03x\gamemodes\RomaniaLifeRPG.pwn(1645) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. [/pawn] si linea cea "magica" ) [pawn] SetVehiclePos(carid,HouseCarSpawns[carid-1][0], HouseCarSpawns[carid-1][1], HouseCarSpawns[carid-1][2]);[/pawn]
-
Am rezolvat erorile dar cand dau complie nu scrie nimic dar jos scris ca la terminat si fotbalbycomico.amx are 0 gb
-
Dar ai facut eroarea ?
-
Da poate va ajuta asta [pawn] #include <a_samp> #include <core> #include <float> #include <time> #include <file> #include <utils> #include <morphinc> #include <dini> #define FILTERSCRIPT #define COLOR_DARKBLUE 0x0000D0FF #define COLOR_WHITE 0xFFFFFFFF #define COLOR_LIGHTBLUE 0xBBFFFFFF #define COLOR_BLACK 0x000000FF #define COLOR_PURPLE 0xC2A2DAAA #define COLOR_GROVE 0x00FF00FF #define anutat forward KeyChanges(); forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5); forward SafeGivePlayerMoney(plyid, amounttogive); forward CustomPickups(); forward MetalDetector(playerid); forward AntiInvasione(); new jucator[MAX_PLAYERS]; new arbitru[MAX_PLAYERS]; new stuart[MAX_PLAYERS]; new fumogeno[MAX_PLAYERS]; new biglietto[MAX_PLAYERS]; new spettatore[MAX_PLAYERS]; new allenamento[MAX_PLAYERS]; new Echipa1[60] = "Echipa1"; new Echipa2[60] = "Echipa2"; new Golll1 = 0; new Golll2 = 0; new skin[MAX_PLAYERS]; new palla; new object1; new object2; new object3; new object4; new object5; new object6; new object7; new object8; new object9; new object10; new object11; new object12; new object13; new object14; new object15; new object16; new object17; new object18; new object19; new object20; new object21; new object22; new object23; new object24; new object25; new object26; new object27; new object28; new object29; new object30; new object31; new object32; new object33; new object34; new object35; new object36; new object37; new object38; new object39; new object40; new object41; new object42; new object43; new object44; new object45; new object46; new object47; new object48; new object49; new object50; new object51; new object52; new object53; #if defined FILTERSCRIPT main() { } public OnPlayerConnect(playerid) { jucator[playerid] = 0; arbitru[playerid] = 0; stuart[playerid] = 0; fumogeno[playerid] = 0; biglietto[playerid] = 0; spettatore[playerid]= 0; skin[playerid] = 0; allenamento[playerid] = 0; SetTimerEx("KeyChanges", 100, 1, "i", playerid); SetTimer("AntiInvasione", 1000, 1); SendClientMessage(playerid, COLOR_DARKBLUE, "Acest server foloseste Fotbal Filterscript creat de Giuseppe Mazzei tradus de Comico"); //do NOT remove credits, if you want you can add: //SendClientMessage(playerid, COLOR_DBLUE, "Modified by [Comico]"); } public OnFilterScriptInit() { print("|_________Football Filterscript__________|"); print("|______Created By Giuseppe_Mazzei________|"); print("|_______________Loaded___________________|"); object1 = CreateObject(3452, -151.817719, -32.392899, 7.841612, 0.0000, 0.0000, 67.5000); object2 = CreateObject(3452, -140.492004, -5.026214, 7.841612, 0.0000, 0.0000, 67.5000); object3 = CreateObject(3452, -218.382690, -6.787929, 7.841612, 0.0000, 0.0000, 247.5000); object4 = CreateObject(3452, -207.174911, 20.435522, 7.841612, 0.0000, 0.0000, 247.5000); object5 = CreateObject(3452, -161.063416, 40.956612, 7.841612, 0.0000, 0.0000, 157.5000); object6 = CreateObject(3452, -197.899384, -52.907509, 7.841612, 0.0000, 0.0000, 337.5000); object7 = CreateObject(3453, -135.337158, 24.373688, 7.841611, 0.0000, 0.0000, 67.5000); object8 = CreateObject(3453, -190.542664, 46.279572, 7.841611, 0.0000, 0.0000, 157.5000); object9 = CreateObject(3453, -223.720779, -36.300037, 7.841611, 0.0000, 0.0000, 247.5000); object10 = CreateObject(3453, -168.429810, -58.201828, 7.841611, 0.0000, 0.0000, 337.5000); object11 = CreateObject(10954, -182.091522, -11.985844, 18.400000, 0.0000, 0.0000, 247.5000); object12 = CreateObject(6063, -182.162048, -109.804596, 9.006953, 0.0000, 0.0000, 258.7500); object13 = CreateObject(3660, -187.470535, -159.805954, 5.099154, 0.0000, 0.0000, 348.7500); object14 = CreateObject(7306, -153.592636, 47.829258, 16.330467, 0.0000, 0.0000, 22.5000); object15 = CreateObject(7307, -203.894562, -60.224949, 16.427698, 0.0000, 0.0000, 112.5001); object16 = CreateObject(4639, -222.447067, -84.841454, 3.813767, 0.0000, 0.0000, 337.5000); object17 = CreateObject(17037, -166.016022, 26.244095, 4.608662, 0.0000, 0.0000, 67.5000); object18 = CreateObject(17037, -194.827393, -40.763809, 4.608662, 0.0000, 0.0000, 247.5000); object19 = CreateObject(3819, -208.973663, -14.270916, 3.114948, 0.0000, 0.0000, 157.5000); object20 = CreateObject(3819, -197.349945, 14.621197, 3.114946, 0.0000, 0.0000, 157.5000); object21 = CreateObject(14485, -155.380585, -141.228271, -0.558419, 0.0000, 0.0000, 90.0000); object22 = CreateObject(14387, -186.612839, -126.812271, 3.101299, 0.0000, 0.0000, 90.0000); object23 = CreateObject(1508, -184.073410, -115.547798, 3.779578, 0.0000, 0.0000, 0.0000); object24 = CreateObject(1508, -183.999069, -136.225800, 5.740783, 0.0000, 0.0000, 270.0000); object25 = CreateObject(8332, -197.508453, -122.987892, 6.405175, 0.0000, 0.0000, 90.0000); object26 = CreateObject(7592, -198.493240, 4.074304, 2.670010, 0.0000, 0.0000, 337.5000); object27 = CreateObject(7592, -159.629807, -13.374039, 2.677804, 0.0000, 0.0000, 337.5000); object28 = CreateObject(7592, -166.538422, 24.221302, 2.677805, 0.0000, 0.0000, 247.5000); object29 = CreateObject(7592, -186.473572, -42.112274, 2.677804, 0.0000, 0.0000, 247.5000); object30 = CreateObject(10397, -179.837433, -6.690983, 6.042799, 0.0000, 0.0000, 247.5000); object31 = CreateObject(3114, -224.517517, -11.732142, 14.000000, 0.0000, 0.0000, 247.5000); object32 = CreateObject(3114, -216.446411, 7.763443, 14.000000, 0.0000, 0.0000, 247.5000); object33 = CreateObject(3114, -208.367935, 27.250381, 14.000000, 0.0000, 0.0000, 247.5000); object34 = CreateObject(7614, -241.212860, 48.856384, 3.690308, 0.0000, 0.0000, 337.5000); object35 = CreateObject(8040, -244.767609, 24.944824, 2.243017, 0.0000, 0.0000, 247.5000); object36 = CreateObject(978, -264.232971, -9.865314, 2.317612, 0.0000, 0.0000, 157.5000); object37 = CreateObject(8042, -259.987183, -11.032295, 7.352411, 0.0000, 0.0000, 258.7501); object38 = CreateObject(979, -263.734314, -6.865885, 2.317614, 0.0000, 0.0000, 337.5000); object39 = CreateObject(986, -188.261139, 41.596863, 6.872591, 0.0000, 0.0000, 303.7500); object40 = CreateObject(986, -191.223618, 45.965206, 8.614551, 0.0000, 0.0000, 303.7500); object41 = CreateObject(986, -194.798935, 51.257202, 10.341534, 0.0000, 0.0000, 303.7500); object42 = CreateObject(986, -139.869202, 22.509758, 6.872591, 0.0000, 0.0000, 202.5000); object43 = CreateObject(986, -134.512268, 24.695408, 8.606966, 0.0000, 0.0000, 202.5000); object44 = CreateObject(986, -129.533249, 26.873953, 10.341534, 0.0000, 0.0000, 202.5000); object45 = CreateObject(986, -219.514694, -33.217968, 6.872591, 0.0000, 0.0000, 22.5000); object46 = CreateObject(986, -223.991638, -35.054913, 8.614550, 0.0000, 0.0000, 22.5000); object47 = CreateObject(986, -230.190796, -37.662083, 9.911654, 0.0000, 0.0000, 22.5000); object48 = CreateObject(986, -171.166641, -53.654182, 6.872591, 0.0000, 0.0000, 101.2500); object49 = CreateObject(986, -169.950790, -59.846634, 8.614550, 0.0000, 0.0000, 101.2500); object50 = CreateObject(986, -168.824356, -65.592049, 10.349154, 0.0000, 0.0000, 101.2500); object51 = CreateObject(7613, -201.964142, -88.057030, 3.516296, 0.0000, 0.0000, 247.5000); object52 = CreateObject(10955, -181.623108, -11.519028, 15.778145, 0.0000, 0.0000, 247.5000); object53 = CreateObject(7306, -138.546173, -23.999727, 16.275385, 0.0000, 0.0000, 292.5000); palla = CreateObject(1598, -180.464828, -7.425705, 2.414398, 0.0000, 0.0000, 0.0000); AddStaticPickup(1239, 2, -222.5425,-86.7066,3.1172);//bilet de birou AddStaticPickup(1239, 2, -202.9730,-66.6648,3.3062);//bilet de intrare AddStaticPickup(1239, 2, -195.1585,-100.0893,3.1163);//intrare newsroom AddStaticPickup(1239, 2, -184.8640,-114.0260,3.1213);//ies,i din sala de presa AddStaticPickup(1239, 2, -182.5193,-135.1851,5.0900);//intrare AddStaticPickup(1239, 2, -210.6958,-3.7785,3.1094);//camp SetTimer("CustomPickups", 1000, 1); return 1; } public OnFilterScriptExit() { DestroyObject(palla); DestroyObject(object1); DestroyObject(object2); DestroyObject(object3); DestroyObject(object4); DestroyObject(object5); DestroyObject(object6); DestroyObject(object7); DestroyObject(object8); DestroyObject(object9); DestroyObject(object10); DestroyObject(object11); DestroyObject(object12); DestroyObject(object13); DestroyObject(object14); DestroyObject(object15); DestroyObject(object16); DestroyObject(object17); DestroyObject(object18); DestroyObject(object19); DestroyObject(object20); DestroyObject(object21); DestroyObject(object22); DestroyObject(object23); DestroyObject(object24); DestroyObject(object25); DestroyObject(object26); DestroyObject(object27); DestroyObject(object28); DestroyObject(object29); DestroyObject(object30); DestroyObject(object31); DestroyObject(object32); DestroyObject(object33); DestroyObject(object34); DestroyObject(object35); DestroyObject(object36); DestroyObject(object37); DestroyObject(object38); DestroyObject(object39); DestroyObject(object40); DestroyObject(object41); DestroyObject(object42); DestroyObject(object43); DestroyObject(object44); DestroyObject(object45); DestroyObject(object46); DestroyObject(object47); DestroyObject(object48); DestroyObject(object49); DestroyObject(object50); DestroyObject(object51); DestroyObject(object52); DestroyObject(object53); } #else main() { print(" Football Stadium [FS] LOADED"); } #endif strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; } GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance) { new Float:a; GetPlayerPos(playerid, x, y, a); GetPlayerFacingAngle(playerid, a); if (GetPlayerVehicleID(playerid)) { GetVehicleZAngle(GetPlayerVehicleID(playerid), a); } x += (distance * floatsin(-a, degrees)); y += (distance * floatcos(-a, degrees)); } public CustomPickups() { new Float:oldposx, Float:oldposy, Float:oldposz; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerPos(i, oldposx, oldposy, oldposz); if (PlayerToPoint(1.7, i, -222.5425,-86.7066,3.1172)) {//bilet de birou GameTextForPlayer(i, "~g~Bilete,~n~~y~apasa ~r~space si clic ~y~~n~~w~sa cumperi ceva", 5000, 3); } else if (PlayerToPoint(1.7, i, -202.9730,-66.6648,3.3062)) {//intrarea in stadion GameTextForPlayer(i, "~g~Intrare~n~~y~apasa ~r~space si clic~y~~n~~w~ca sa intri", 5000, 3); } else if(PlayerToPoint(1.7, i, -195.1585,-100.0893,3.1163)) {//intrare newsroom SetPlayerPos(i, -186.7655,-116.7739,3.1213); GameTextForPlayer(i, "~g~Newsroom", 5000, 1); } else if(PlayerToPoint(1.7, i, -184.8640,-114.0260,3.1213)) {//iesire din sala de presa( SetPlayerPos(i, -199.5605,-99.5375,3.1163); GameTextForPlayer(i, "~r~Iesire", 5000, 1); } else if(PlayerToPoint(1.7, i, -210.6958,-3.7785,3.1094)) {//iesire din campul GameTextForPlayer(i, "~g~Iesire~n~~y~apasa ~r~space si clic ~y~~n~~w~ca sa iesi", 5000, 3); } else if(PlayerToPoint(1.7, i, -182.5193,-135.1851,5.0900)) {//intrarea in campul if(anutat == 1) { if(arbitru == 1 || jucator >= 1 || stuart == 1) { GameTextForPlayer(i, "~g~Intrare~n~~y~apasa~r~space si clic~y~~n~~w~ca sa intri", 5000, 3); } else { GameTextForPlayer(i, "~r~Nu poti intra", 5000, 1); } } else//anuntat == 0 { if(arbitru == 1) { GameTextForPlayer(i, "~g~Intrare~n~~y~apasa~r~space si clic~y~~n~~w~ca sa intri", 5000, 3); } else { GameTextForPlayer(i, "~g~Intrare~n~~y~apasa~r~space si clic~y~~n~~w~ca sa incepi antrenamentul", 5000, 3); } } } } } } public KeyChanges() { new keys, updown, leftright; new string[256]; for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { GetPlayerKeys(playerid, keys, updown, leftright); new Float:ox, Float:oy, Float:oz; GetObjectPos(palla, ox, oy, oz); new Float:px, Float:py, Float:pz; new Float:angle; GetPlayerFacingAngle(playerid, angle); if(keys == KEY_FIRE && jucator[playerid] >= 1 || keys == KEY_FIRE && allenamento[playerid] >= 1) { if(PlayerToPoint(2.5,playerid,ox,oy,oz)) { GetPlayerPos(playerid, px, py, pz); GetXYInFrontOfPlayer(playerid, px, py, 10.0); MoveObject(palla,px,py,2.414398,8.0); PlayerPlaySound(playerid,1130,0.0,0.0,0.0); ApplyAnimation(playerid,"FIGHT_D","FightD_1",4.1,0,1,1,0,0); } } else if(keys == KEY_FIRE + KEY_SPRINT && jucator[playerid] >= 1 || keys == KEY_FIRE + KEY_SPRINT && allenamento[playerid] >= 1) { if(PlayerToPoint(2.5,playerid,ox,oy,oz)) { GetPlayerPos(playerid, px, py, pz); GetXYInFrontOfPlayer(playerid, px, py, 10.0); MoveObject(palla,px,py,2.414398,10.0); PlayerPlaySound(playerid,1130,0.0,0.0,0.0); ApplyAnimation(playerid,"FIGHT_D","FightD_1",4.1,0,1,1,0,0); } } else if(keys == KEY_SPRINT && PlayerToPoint(1.7, playerid, -222.5425,-86.7066,3.1172)) { if(anutat == 1) { ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Bilete - Alece ce vrei sa cumperi, "Bilet\Fumigena $30", "Cumpara", "NU Cumpara"); } else { GameTextForPlayer(playerid, "~r~Closed", 5000, 1); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); return 1; } } else if(keys == KEY_SPRINT && PlayerToPoint(1.7, playerid, -182.5193,-135.1851,5.0900)) {//intrarea in campul if(anutat == 1) { if(arbitru[playerid] == 1 || jucator [playerid] >= 1 || Stuart[playerid] == 1) { SetPlayerPos(playerid, -210.6958,-3.7785,3.1094); } } else//anutat == 0 { if(arbitru[playerid] == 1) { SetPlayerPos(playerid, -204.9500,-5.2410,3.1094); } else { SetPlayerPos(playerid, -204.9500,-5.2410,3.1094); allenamento[playerid] = 1; } } }//sunt else if(keys == KEY_SPRINT && PlayerToPoint(1.7, playerid, -210.6958,-3.7785,3.1094)) { if(spettatore[playerid] != 1) { if(allenamento[playerid] == 1) { SetPlayerPos(playerid, -183.8667,-131.6020,5.0900); SendClientMessage(playerid, COLOR_WHITE, "Antrenamet terminat!"); allenamento[playerid] = 0; } else { SetPlayerPos(playerid, -183.8667,-131.6020,5.0900); } } } else if(keys == KEY_SPRINT && PlayerToPoint(1.7, playerid, -202.9730,-66.6648,3.3062)) { if(biglietto[playerid] == 1) { SetPlayerPos(playerid, -211.9384,3.9319,7.9039); SendClientMessage(playerid, COLOR_WHITE, "Du-te jos de pe scari pentru a iesi din stadion"); GameTextForPlayer(playerid, "~g~Bun venit!", 5000, 1); biglietto[playerid] = 0; spettatore[playerid] = 1; MetalDetector(playerid); } else if(biglietto[playerid] == 2) { SetPlayerPos(playerid, -147.5607,-19.1419,8.0165); SendClientMessage(playerid, COLOR_WHITE, "Du-te jos de pe scari pentru a iesi din stadion"); GameTextForPlayer(playerid, "~g~Bun venit!", 5000, 1); biglietto[playerid] = 0; spettatore[playerid] = 1; MetalDetector(playerid); } else if(biglietto[playerid] == 3) { SetPlayerPos(playerid, -200.3670,-55.6259,9.6309); SendClientMessage(playerid, COLOR_WHITE, "Du-te jos de pe scari pentru a iesi din stadion"); GameTextForPlayer(playerid, "~g~Bun venit!", 5000, 1); biglietto[playerid] = 0; spettatore[playerid] = 1; MetalDetector(playerid); } else if(biglietto[playerid] == 4) { SetPlayerPos(playerid, -160.0574,40.9410,8.3338); SendClientMessage(playerid, COLOR_WHITE, "Du-te jos de pe scari pentru a iesi din stadion"); GameTextForPlayer(playerid, "~g~Bun venit!", 5000, 1); biglietto[playerid] = 0; spettatore[playerid] = 1; MetalDetector(playerid); } else if(biglietto[playerid] == 0 && stuart[playerid]== 1) { format(string, sizeof(string), "tribuna\platforma de descoperire\platforma fani %s\platforma fani %s", Echipa 1, Echipa 2); ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Intrarea Stuart - Alege unde vrei sa te duci", string, "Acepta", "Refuza"); } else { SendClientMessage(playerid, COLOR_WHITE, "Nu ai bilet!!"); return 1; } } } }return 1; } public MetalDetector(playerid) { new ammo,weap; GetPlayerWeaponData(playerid, 8,weap,ammo); if (weap == 17 && ammo >= 1) { ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 17, 1); } else { ResetPlayerWeapons(playerid); } } public AntiInvasione() { for(new i = 0; i < MAX_PLAYERS; i++) { if(spettatore == 1) { new Float:X, Float:Y, Float:Z; GetPlayerPos(i, X, Y, Z); if(Z < 4 || Z > 12) { SetPlayerPos(i, -202.9730,-66.6648,3.3062); spettatore = 0; GameTextForPlayer(i, "~r~Refuza", 5000, 1); } } } } public SafeGivePlayerMoney(plyid, amounttogive) { new curHour, curMinute, curSecond; gettime(curHour, curMinute, curSecond); if (amounttogive < 0) { GivePlayerMoney(plyid, amounttogive); } else { GivePlayerMoney(plyid, amounttogive); } return 1; } public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5) { if(IsPlayerConnected(playerid)) { new Float:posx, Float:posy, Float:posz; new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); //radi = 2.0; //Trigger Radius for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))) { GetPlayerPos(i, posx, posy, posz); tempposx = (oldposx -posx); tempposy = (oldposy -posy); tempposz = (oldposz -posz); //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz); if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) { SendClientMessage(i, col1, string); } else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) { SendClientMessage(i, col2, string); } else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) { SendClientMessage(i, col3, string); } else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) { SendClientMessage(i, col4, string); } else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { SendClientMessage(i, col5, string); } } } }//not connected return 1; } public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) { if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } } return 0; } public OnPlayerCommandText(playerid, cmdtext[]) { new string[256]; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new cmd[256]; new tmp[256]; new idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/arbitru", true) == 0) { if(IsPlayerConnected(playerid)) { if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_WHITE, "Nu esti logat in RCON!!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arbitru [numele/id]"); return 1; } new para1; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); arbitru[para1] = 1; printf("%s chooses %s as arbitru.", sendername, giveplayer); format(string, sizeof(string), " %s chooses you as arbitru", sendername); SendClientMessage(para1, COLOR_WHITE, string); format(string, sizeof(string), " You choose %s as arbitru.", giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), " %s esti arbitru runda asta! Dute la Stadion!", giveplayer); SendClientMessageToAll(COLOR_GROVE, string); skin[para1] = GetPlayerSkin(para1); SetPlayerSkin(para1, 72); } } } return 1; } if(strcmp(cmd, "/rcmds", true) == 0) { if(IsPlayerConnected(playerid)) { if(arbitru[playerid] == 1) { format(string, sizeof(string), "%s\n%s\nAnuta\nStuart\nPorneste meciu!!\nMingea in centru!!\nMingea aici!!\nFoc\nGolll\nOpreste jocu!!\nOpreste runda!!\nBan", Echipa 1, Echipa 2); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Comenzile Arbitrului !", string, "Acepta", "Refuza"); } }return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); new string[128]; if(response) { if(dialogid == 1) { if(listitem == 0) { format(string, sizeof(string), " Comenzile Arbitrului ! - %s", Echipa 1); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, string, "Schimba numele Echipei\nBaga Jucatori", "Acepta", "Refuza"); } if(listitem == 1) { format(string, sizeof(string), " Comenzile Arbitrului ! - %s", Echipa 2); ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, string, "Schimba numele Echipei\nBaga Jucatori", "Acepta", "Refuza"); } if(listitem == 2) { if(anutat == 1) { SendClientMessage(playerid, COLOR_WHITE, "Ai anuntat inceperea meciului! Acum scrie 'Porneste meciu'"); return 1; } else { format(string, sizeof(string), " Meci de fotbal intre% s s,i% s va incepe in 20 de minute! arbitrul este: %s", Echipa 1, Echipa 2, sendername); SendClientMessageToAll(COLOR_GROVE, string); anutat = 1; for(new i = 0; i < MAX_PLAYERS; i++) { if(allenamento == 1) { SetPlayerPos(i, -182.5193,-135.1851,5.0900); SendClientMessage(i, COLOR_WHITE, "Instruirea este terminata, deoarece un meci va incepe in curand!"); allenamento = 0; } } } } if(listitem == 3) { ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, string, "Adaugati Stuart\nStuart foc", "Acepta", "Refuza"); } if(listitem == 4) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* arbitrul %s incepe meciul.", sendername); ProxDetector(50.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(listitem == 5) { DestroyObject(palla); palla = CreateObject(1598, -180.464828, -7.425705, 2.414398, 0.0000, 0.0000, 0.0000); } if(listitem == 6) { new Float: X, Float: Y, Float: Z; GetPlayerPos(playerid, X, Y, Z); DestroyObject(palla); palla = CreateObject(1598, X, Y, 2.414398, 0.0000, 0.0000, 0.0000); } if(listitem == 7) { ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Jucator foc", "Bagati id-u uniu jucator!", "Acepta", "Refuza"); } if(listitem == 8) { format(string, sizeof(string), "%s\n%s", Echipa 1, Echipa 2); ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Comenzile Arbitrului ! - Golll", string, "Acepta", "Refuza"); } if(listitem == 9) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* arbitrul %s opreaste runda.", sendername); ProxDetector(50.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(listitem == 10) { format(string, sizeof(string), "Runda sa terminat: %s %d - %d %s", Echipa 1, Golll1, Golll2, Echipa 2); SendClientMessageToAll(COLOR_GROVE, string); Golll1 = 0; Golll2 = 0; anutat = 0; Echipa 1 = "Team1"; Echipa 2 = "Team2"; for(new i = 0; i < MAX_PLAYERS; i++) { if(jucator >= 1 || arbitru == 1 || stuart == 1) { SetPlayerSkin(i, skin); jucator = 0; arbitru = 0; stuart = 0; } } } if(listitem == 11) { new coin = random(2)+1; GetPlayerName(playerid, sendername, sizeof(sendername)); new coinname[20]; if(coin == 1) { coinname = "cap"; } else { coinname = "pajura"; } format(string, sizeof(string), "*** arbitrul %s arunca moneda si a cazut pe %s", sendername,coinname); ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } if(dialogid == 2) { if(listitem == 0) { ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Schimba numele", "Baga un nume nou petru echipa 1", "Acepta", "Refuza"); } if(listitem == 1) { ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Baga jucator", "Scrie id-u jucatorului!!", "Acepta", "Refuza"); } } if(dialogid == 3) { if(listitem == 0) { ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Schimba numele", "Baga un nume nou petru echipa 2", "Acepta", "Refuza"); } if(listitem == 1) { ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT, "Baga jucator", "Scrie id-u jucatorului!!", "Acepta", "Refuza"); } } if(dialogid == 4) { if(strlen(inputtext)) { new giveplayerid; giveplayerid = ReturnUser(inputtext); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID && jucator[giveplayerid] >= 1) { jucator[giveplayerid] = 0; SetPlayerSkin(giveplayerid, skin[giveplayerid]); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "Ai fost eliminat %s", giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost elimninat de catre arbitru %s", sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); } } } } if(dialogid == 5) { if(listitem == 0) { Golll1 ++; format(string, sizeof(string), "[sPEAKER]: Golurile curente: %s %d - %d %s", Echipa 1, Golll1, Golll2, Echipa 2); ProxDetector(100.0, playerid, string, COLOR_GROVE,COLOR_GROVE,COLOR_GROVE,COLOR_GROVE,COLOR_GROVE); } if(listitem == 1) { Golll2 ++; format(string, sizeof(string), "[sPEAKER]: Golurile curente: %s %d - %d %s", Echipa 1, Golll1, Golll2, Echipa 2); ProxDetector(100.0, playerid, string, COLOR_GROVE,COLOR_GROVE,COLOR_GROVE,COLOR_GROVE,COLOR_GROVE); } } if(dialogid == 6) { if(strlen(inputtext)) { format(string, sizeof(string), "%s", inputtext); strmid(Echipa 1, string, 0, strlen(string), 255); format(string, sizeof(string), "Echipa1 nume: %s", Echipa 1); SendClientMessage(playerid, COLOR_WHITE, string); } } if(dialogid == 7) { if(strlen(inputtext)) { new giveplayerid; giveplayerid = ReturnUser(inputtext); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { jucator[giveplayerid] = 1; skin[giveplayerid] = GetPlayerSkin(giveplayerid); SetPlayerSkin(giveplayerid, 96); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%s joaca acum pentru %s", giveplayer, Echipa 1); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), " arbitru %s autorizat sa joace", sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); } } } } if(dialogid == 8) { if(strlen(inputtext)) { format(string, sizeof(string), "%s", inputtext); strmid(Echipa 2, string, 0, strlen(string), 255); format(string, sizeof(string), "Echipa2 nume: %s", Echipa 2); SendClientMessage(playerid, COLOR_WHITE, string); } } if(dialogid == 9) { if(strlen(inputtext)) { new giveplayerid; giveplayerid = ReturnUser(inputtext); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { jucator[giveplayerid] = 2; skin[giveplayerid] = GetPlayerSkin(giveplayerid); SetPlayerSkin(giveplayerid, 23); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%s joaca acum pentru %s", giveplayer, Echipa 2); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), " arbitru %s has autorizat sa joace", sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); } } } } if(dialogid == 10) { if(listitem == 0) { ShowPlayerDialog(playerid, 11, DIALOG_STYLE_INPUT, "Adaugati Stuart", "Introduce id-ul uniu jucator", "Acepta", "Refuza"); } if(listitem == 1) { ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Stuart foc", "Introduce id-ul uniu jucator ca sa suteze", "Acepta", "Refuza"); } } if(dialogid == 11) { if(strlen(inputtext)) { new giveplayerid; giveplayerid = ReturnUser(inputtext); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { stuart[giveplayerid] = 1; skin[giveplayerid] = GetPlayerSkin(giveplayerid); SetPlayerSkin(giveplayerid, 16); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%s este acum un Stuart", giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), " arbitru %s autorizat Stuart", sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); } } } } if(dialogid == 12) { if(strlen(inputtext)) { new giveplayerid; giveplayerid = ReturnUser(inputtext); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID && stuart[giveplayerid] >= 1) { stuart[giveplayerid] = 0; SetPlayerSkin(giveplayerid, skin[giveplayerid]); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "Ai fost eliminat %s from", giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "arbitru %s autorizat Stuartt", sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); } } } } if(dialogid == 13) { if(listitem == 0) { format(string, sizeof(string), "tribuna $100\platforma de descoperire $50\platforma fani %s $30\platforma fani %s $30", Echipa 1, Echipa 2); ShowPlayerDialog(playerid, 14, DIALOG_STYLE_LIST, "Bilete - Cumpara bilet", string, "Acepta", "Refuza"); } if(listitem == 1) { new money = GetPlayerMoney(playerid); if(money < 30) { SendClientMessage(playerid, COLOR_WHITE, "Nu ai $30!"); return 1; } else { if(fumogeno[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "Nu poti cumpara alta fumigena runda asta!"); return 1; } else { GivePlayerMoney(playerid, -30); SendClientMessage(playerid, COLOR_WHITE, "Nu ai $30!"); GivePlayerWeapon(playerid, 17, 1); fumogeno[playerid] = 1; } } } } if(dialogid == 14) { if(listitem == 0) { new money = GetPlayerMoney(playerid); if(money < 6) { SendClientMessage(playerid, COLOR_WHITE, "Nu ai $100!"); return 1; } else { GivePlayerMoney(playerid, -6); biglietto[playerid] = 1; SendClientMessage(playerid, COLOR_WHITE, "Ai cumparat un bilet, acesta nu poate fi folosit de 2 ori"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[HINT]: Veti trece intr-un detector de metale si toate armele vor fi luate"); } } if(listitem == 1) { new money = GetPlayerMoney(playerid); if(money < 5) { SendClientMessage(playerid, COLOR_WHITE, "Nu ai $50!"); return 1; } else { GivePlayerMoney(playerid, -5); biglietto[playerid] = 2; SendClientMessage(playerid, COLOR_WHITE, "Ai cumparat un bilet, acesta nu poate fi folosit de 2 ori"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[HINT]: Veti trece intr-un detector de metale si toate armele vor fi luate"); } } if(listitem == 2) { new money = GetPlayerMoney(playerid); if(money < 3) { SendClientMessage(playerid, COLOR_WHITE, "Nu ai $30!"); return 1; } else { GivePlayerMoney(playerid, -3); biglietto[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, "Ai cumparat un bilet, acesta nu poate fi folosit de 2 ori"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[HINT]: Veti trece intr-un detector de metale si toate armele vor fi luate"); } } if(listitem == 3) { new money = GetPlayerMoney(playerid); if(money < 5) { SendClientMessage(playerid, COLOR_WHITE, "Nu ai $30!"); return 1; } else { GivePlayerMoney(playerid, -3); biglietto[playerid] = 4; SendClientMessage(playerid, COLOR_WHITE, "Ai cumparat un bilet, acesta nu poate fi folosit de 2 ori"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[HINT]: Veti trece intr-un detector de metale si toate armele vor fi luate"); } } } if(dialogid == 15) { if(listitem == 0) { SetPlayerPos(playerid, -211.9384,3.9319,7.9039); SendClientMessage(playerid, COLOR_WHITE, "Du-te jos de pe scari pentru a iesi din stadion"); GameTextForPlayer(playerid, "~g~Bun venit!", 5000, 1); spettatore[playerid] = 1; } if(listitem == 1) { SetPlayerPos(playerid, -147.5607,-19.1419,8.0165); SendClientMessage(playerid, COLOR_WHITE, "Du-te jos de pe scari pentru a iesi din stadion"); GameTextForPlayer(playerid, "~g~Bun venit!", 5000, 1); spettatore[playerid] = 1; } if(listitem == 2) { SetPlayerPos(playerid, -200.3670,-55.6259,9.6309); SendClientMessage(playerid, COLOR_WHITE, "Du-te jos de pe scari pentru a iesi din stadion"); GameTextForPlayer(playerid, "~g~Bun venit!", 5000, 1); spettatore[playerid] = 1; } if(listitem == 3) { SetPlayerPos(playerid, -160.0574,40.9410,8.3338); SendClientMessage(playerid, COLOR_WHITE, "Du-te jos de pe scari pentru a iesi din stadion"); GameTextForPlayer(playerid, "~g~Bun venit!", 5000, 1); spettatore[playerid] = 1; } } }//end response return 1; } [/pawn]
-
Nu merge nici asa va rog ajutatima.
-
Primesc 4 erori cand dau complier E:\ \rsr\filterscripts\FotbalByComico.pwn(320) : error 029: invalid expression, assumed zero E:\ \rsr\filterscripts\FotbalByComico.pwn(320) : warning 215: expression has no effect E:\ \rsr\filterscripts\FotbalByComico.pwn(320) : error 001: expected token: ";", but found ")" E:\ \rsr\filterscripts\FotbalByComico.pwn(320) : error 029: invalid expression, assumed zero E:\ \rsr\filterscripts\FotbalByComico.pwn(320) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. [pawn] 319 {//intrarea in campul 320 if anutat == 1); 321 { [/pawn]