Jump to content

shean

Membru
  • Posts

    43
  • Joined

  • Last visited

Recent Profile Visitors

591 profile views

shean's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Regula virgulei: Corect: virgula, virgula Gresit: virgula , virgula | virgula ,virgula
  2. salut!Am facut o vama dar , cand scriu /barriera nu se misca bariera nici una dintre cele 2 . Ma puteti ajuta ?Este ceva gresit in cea ce am facut? [pawn] #include <a_samp> #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_BLUE 0x2641FEAA #define COLOR_1GREEN 0x6BD700FF #define COLOR_WHITE 0xFFFFFFAA #define COLOR_1BLUE 0x0080FFFF #define PTP PlayerToPoint forward CustomPickups(); forward vamaClose(playerid); forward vama1Close(playerid); forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); enum pInfo { pKey[128], pPassport, }; new PlayerInfo[MAX_PLAYERS][pInfo]; new vama; new vama1; new pickupvama; new pickupvama1; public OnGameModeInit() { pickupvama = CreatePickup(1239, 23, 600.9317,-1184.7410,20.7388); pickupvama1 = CreatePickup(1239, 23, 628.9692,-1188.7152,18.5387); CreateObject(983,630.80212402344,-1178.0334472656,19.312618255615,0,0,298); CreateObject(967,626.9765625,-1179.220703125,18.510345458984,0,0,297.99865722656); CreateObject(966,626.1513671875,-1180.0009765625,18.480548858643,0,0,31.997680664063); CreateObject(983,617.24328613281,-1185.6096191406,19.38306427002,0,0,121.99816894531); CreateObject(8843,621.68365478516,-1181.9276123047,18.565780639648,5.7999877929688,0,30); CreateObject(983,610.38177490234,-1186.4262695313,19.752365112305,0,0,298); CreateObject(967,600.36328125,-1192.0660400391,18.816455841064,0,0,117.99868774414); CreateObject(983,597.22235107422,-1194.6226806641,19.610870361328,0,0,299.99865722656); CreateObject(966,601.13464355469,-1191.4663085938,18.833299636841,0,0,207.99768066406); CreateObject(8843,598.78491210938,-1178.6994628906,20.723304748535,352.29998779297,0,215.99816894531); vama = CreateObject(968,625.95745849609,-1180.1488037109,19.134094238281,0,90,212); vama1 = CreateObject(968,601.28918457031,-1191.2478027344,19.628963470459,0,90,27.997680664063); return 1; } public OnFilterScriptInit() { return 1; } public vamaClose() { MoveObject(vama, 625.95745849609,-1180.1488037109,19.134094238281, 3.5); return 1; } public vama1Close() { MoveObject(vama1, 601.28918457031,-1191.2478027344,19.628963470459, 3.5); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { //------------------------------------Barrier-------------------------------------- if(strcmp(cmdtext, "/barriera", true) == 0) { if(PlayerToPoint(3.0, playerid, 624.9478,-1187.1923,18.8808)) { if(PlayerInfo[playerid][pPassport] == 1) { MoveObject(vama,625.94976806641,-1180.1370849609,19.118846893311 , 5.5); SetTimer("vamaClose", 3000, 0); SendClientMessage(playerid, COLOR_1GREEN, "Ai platit vamei 100$ pentru a putea trece..Vama se va inchide in 3 secunde"); GivePlayerMoney(playerid,-100); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else if(PlayerToPoint(5.0, playerid, 600.8569,-1184.5107,20.7767)) { if(PlayerInfo[playerid][pPassport] == 1) { MoveObject(vama1,601.30047607422,-1191.2603759766,19.598106384277 , 5.5); SetTimer("vama1Close", 3000, 0); SendClientMessage(playerid, COLOR_1GREEN, "Ai platit vamei 100$ pentru a putea trece..Vama se va inchide in 3 secunde"); GivePlayerMoney(playerid,-100); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier."); return 1; } } return 0; } 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 OnPlayerConnect(playerid) { PlayerInfo[playerid][pPassport] = 1; return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickupvama) { GameTextForPlayer(playerid,"~w~Scrie ~r~/barriera ~w~pentru a deskide barriera",3000,5); } if(pickupid == pickupvama1) { GameTextForPlayer(playerid,"~w~Scrie ~r~/barriera ~w~pentru a deskide barriera",3000,5); } return 1; } [/pawn]
  3. bn stiu dar mta este un program de script samp
  4. Salut tuturor. Vreau sa va intreb daca este un convertor pentru a face createobject/createdynamicobject ca sa poate fie citit de mta
  5. D:\GM Xtr-Zone\pawno\new.pwn(23) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo" D:\GM Xtr-Zone\pawno\new.pwn(23) : warning 215: expression has no effect D:\GM Xtr-Zone\pawno\new.pwn(23) : error 001: expected token: ";", but found "]" D:\GM Xtr-Zone\pawno\new.pwn(23) : error 029: invalid expression, assumed zero D:\GM Xtr-Zone\pawno\new.pwn(23) : 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] if ((newkeys==KEY_CROUCH )) { linia 23: if(PlayerInfo[playerid][pPassPort] == 1) { if(PlayerToPoint(12.0,playerid,35.581932067871, -1539.7443847656, 4.9923849105835)) { if ((!adds)) {return 1;} SetTimer("AddsOn17", addtimer8, 0);adds = 0; RotateObject(vama1, 1, 0, 89, 20, 11.5); SetTimer("closevama1",4000,0); SCM(playerid, WHITE, "The barrier is now open and will be closed in 4 seconds "); } } } if ((newkeys==KEY_CROUCH )) { if(PlayerInfo[playerid][pPassPort] == 1) { if(PlayerToPoint(12.0,playerid,67.376449584961, -1524.0074462891, 4.7072782516479)) { if ((!adds)) {return 1;} SetTimer("AddsOn18", addtimer9, 0);adds = 0; RotateObject(vama2, 1, 358, 89, 20, 11.5); SetTimer("closevama2",4000,0); SCM(playerid, WHITE, "The barrier is now open and will be closed in 4 seconds "); } } } [/pawn]
  6. shean

    Pawno

    Orice fac schimb in pawno in gm zice "Cannot create file 'D\sAMP03\gamemodes\gm.pwn.The proces cannot acces the file because it is begin used by anothor proces" Ce sa fac ma enerveaza rau X(?
  7. Nu am casit doar chesti de genu gamehost . Eu vreau sa fac un lucru createdynamicobject in createobject sau daca puteti sa imi dati un #define la createdynamicobject
  8. Exista un convertor care pot transforma un lucru "createdynamicobjects" in "createobjects" ? Puteti sa imi aratati unde il descarc?Multumesc!
  9. tot nu merge:( [pawn] #include <a_samp> #pragma tabsize 0 #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_BLUE 0x2641FEAA #define COLOR_1GREEN 0x6BD700FF #define COLOR_WHITE 0xFFFFFFAA #define COLOR_1BLUE 0x0080FFFF #define PTP PlayerToPoint forward CustomPickups(); forward vamaClose(playerid); forward vama1Close(playerid); forward vama2Close(playerid); forward vama3Close(playerid); forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); enum pInfo { pKey[128], pPassport, }; new PlayerInfo[MAX_PLAYERS][pInfo]; new vama; new vama1; new vama2; new vama3; new pickupvama; new pickupvama1; public OnGameModeInit() { pickupvama = CreatePickup(1239, 23, 600.9317,-1184.7410,20.7388); pickupvama1 = CreatePickup(1239, 23, 628.9692,-1188.7152,18.5387); CreateObject(967,-26.850067138672,-1334.3210449219,10.107961654663,0,0,40); CreateObject(967,-16.854888916016,-1346.0773925781,10.117139816284,0,0,220); CreateObject(984,-16.832099914551,-1336.0393066406,10.657336235046,0.5,0,309); CreateObject(1237,-21.910934448242,-1340.1557617188,10.029999732971,0,0,40); CreateObject(983,-24.58780670166,-1342.2296142578,10.658601760864,0,0,307.59997558594); CreateObject(1237,-27.26879119873,-1344.2724609375,9.9727392196655,0,0,38); CreateObject(1237,-11.728576660156,-1331.9340820313,10.049701690674,0,0,40); CreateObject(1290,-13.051498413086,-1333.0826416016,16.065097808838,0,0,310); CreateObject(1290,-19.289497375488,-1338.1264648438,16.029445648193,0,0,310); CreateObject(1290,-25.882446289063,-1343.2706298828,16.000564575195,0,0,308); CreateObject(983,-22.326164245605,-1332.8041992188,10.825042724609,0,0,310); CreateObject(983,-14.667671203613,-1342.1220703125,10.822408676147,0,0,309.29992675781); CreateObject(1237,-12.044784545898,-1339.9577636719,10.160488128662,0,0,38); CreateObject(1237,-19.686386108398,-1330.6033935547,10.163299560547,0,0,40); CreateObject(967,0.39705657958984,-1368.4739990234,9.8896732330322,0,0,220); CreateObject(967,-9.4363021850586,-1356.4261474609,9.8762083053589,0,0,38); CreateObject(1237,-4.556999206543,-1362.4818115234,9.7111129760742,0,0,308); CreateObject(983,-7.1737098693848,-1364.6610107422,10.448221206665,358.79998779297,0,309.20001220703); CreateObject(984,0.59994125366211,-1358.4221191406,10.193688392639,358.79992675781,0,309); CreateObject(1237,5.7537460327148,-1354.220703125,9.426513671875,0,0,38); CreateObject(1237,-9.8645248413086,-1366.8519287109,9.8185005187988,0,0,38); CreateObject(983,-5.0443267822266,-1355.2003173828,10.474130630493,359.20007324219,0,308.20001220703); CreateObject(983,2.7509002685547,-1364.4270019531,10.47036075592,359.29998779297,0,308.90002441406); CreateObject(1237,5.4575805664063,-1362.2467041016,9.7096014022827,0,0,38); CreateObject(1237,-2.3412475585938,-1353.0610351563,9.7135858535767,0,0,38); CreateObject(1290,4.3110275268555,-1355.3862304688,15.489709854126,0,0,310); CreateObject(1290,-1.9214477539063,-1360.3898925781,15.661690711975,0,0,310); CreateObject(1290,-8.4369926452637,-1365.6850585938,15.819143295288,0,0,308); vama = CreateObject(968,-26.361894607544,-1334.892578125,10.962881088257,0,90,310); vama1 = CreateObject(968,-17.39966583252,-1345.5533447266,10.879447937012,0,270,310); vama2 = CreateObject(968,-8.9569120407104,-1357.0054931641,10.736392974854,0,90,309); vama3 = CreateObject(968,-0.10332006216049,-1367.9127197266,10.680000305176,0,270,309.29992675781); return 1; } public OnFilterScriptInit() { return 1; } public vamaClose() { MoveObject(vama, -26.361894607544,-1334.892578125,10.962881088257, 3.5); return 1; } public vama1Close() { MoveObject(vama1, -17.39966583252,-1345.5533447266,10.879447937012, 3.5); return 1; } public vama2Close() { MoveObject(vama2, -8.9569120407104,-1357.0054931641,10.736392974854, 3.5); return 1; } public vama3Close() { MoveObject(vama3, -0.10332006216049,-1367.9127197266,10.680000305176, 3.5); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { //------------------------------------Barrier-------------------------------------- if(strcmp(cmdtext, "/vamat", true) == 0) { if(PlayerToPoint(3.0, playerid, -16.8223,-1339.8367,10.9937)) { if(PlayerInfo[playerid][pPassport] == 1) { MoveObject(vama1, -17.424459457397,-1345.57421875,11.012575149536, 5.5); SetTimer("vama1Close", 3000, 0); SendClientMessage(playerid, COLOR_1GREEN, "Ai platit vamei 100$ pentru a putea trece..Vama se va inchide in 3 secunde"); GivePlayerMoney(playerid,-100); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else if(PlayerToPoint(5.0, playerid, -21.9065,-1336.4952,10.9705)) { if(PlayerInfo[playerid][pPassport] == 1) { MoveObject(vama, -26.411027908325,-1334.9334716797,10.775354385376, 5.5); SetTimer("vamaClose", 3000, 0); SendClientMessage(playerid, COLOR_1GREEN, "Ai platit vamei 100$ pentru a putea trece..Vama se va inchide in 3 secunde"); GivePlayerMoney(playerid,-100); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier."); return 1; } else if(PlayerToPoint(5.0, playerid, -9.1664,-1361.7852,10.7733)) { if(PlayerInfo[playerid][pPassport] == 1) { MoveObject(vama2, -8.9464988708496,-1356.9973144531,10.706520080566, 5.5); SetTimer("vamaClose", 3000, 0); SendClientMessage(playerid, COLOR_1GREEN, "Ai platit vamei 100$ pentru a putea trece..Vama se va inchide in 3 secunde"); GivePlayerMoney(playerid,-100); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier."); return 1; } } else if(PlayerToPoint(5.0, playerid, -5.5553,-1367.1934,10.7790)) { if(PlayerInfo[playerid][pPassport] == 1) { MoveObject(vama3, -0.12400734424591,-1367.9291992188,11.005669593811, 5.5); SetTimer("vamaClose", 3000, 0); SendClientMessage(playerid, COLOR_1GREEN, "Ai platit vamei 100$ pentru a putea trece..Vama se va inchide in 3 secunde"); GivePlayerMoney(playerid,-100); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier."); return 1; } return 0; } 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 OnPlayerConnect(playerid) { PlayerInfo[playerid][pPassport] = 1; return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickupvama) { GameTextForPlayer(playerid,"~w~Scrie ~r~/vamat ~w~pentru a deskide barriera",3000,5); } if(pickupid == pickupvama1) { GameTextForPlayer(playerid,"~w~Scrie ~r~/vamat ~w~pentru a deskide barriera",3000,5); } return 1; } [/pawn]
  10. D:\samp03\filterscripts\VamaT.pwn(136) : warning 225: unreachable code D:\samp03\filterscripts\VamaT.pwn(136) : error 029: invalid expression, assumed zero D:\samp03\filterscripts\VamaT.pwn(136) : warning 215: expression has no effect D:\samp03\filterscripts\VamaT.pwn(136) : error 001: expected token: ";", but found "if" D:\samp03\filterscripts\VamaT.pwn(179) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. [pawn]linia 136: else if(PlayerToPoint(5.0, playerid, -9.1664,-1361.7852,10.7733)) { if(PlayerInfo[playerid][pPassport] == 1) { MoveObject(vama2, -8.9464988708496,-1356.9973144531,10.706520080566, 5.5); SetTimer("vamaClose", 3000, 0); SendClientMessage(playerid, COLOR_1GREEN, "Ai platit vamei 100$ pentru a putea trece..Vama se va inchide in 3 secunde"); GivePlayerMoney(playerid,-100); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier."); return 1; } }[/pawn]
  11. Lam rezolvat singur , mersi oricum Scuze ca am facut de 3 ori post :D
  12. Am facut eu ceva dar: D:\samp03\filterscripts\VamaT.pwn(122) : warning 225: unreachable code D:\samp03\filterscripts\VamaT.pwn(122) : error 029: invalid expression, assumed zero D:\samp03\filterscripts\VamaT.pwn(122) : warning 215: expression has no effect D:\samp03\filterscripts\VamaT.pwn(122) : error 001: expected token: ";", but found "if" D:\samp03\filterscripts\VamaT.pwn(165) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. [pawn] 122: else if(PlayerToPoint(5.0, playerid, -9.1664,-1361.7852,10.7733)) { if(PlayerInfo[playerid][pPassport] == 1) { MoveObject(vama2, -8.9464988708496,-1356.9973144531,10.706520080566, 5.5); SetTimer("vamaClose", 3000, 0); SendClientMessage(playerid, COLOR_1GREEN, "Ai platit vamei 100$ pentru a putea trece..Vama se va inchide in 3 secunde"); GivePlayerMoney(playerid,-100); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier."); return 1; } }[/pawn]
  13. Il stiu dar e putin enervant FS 4/5
×
×
  • 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.