lukyno010 0 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 cawte ja som si spravil branu aj ja mi otvara len ked ju chcem uz zatvorit tak sa da kolko na povodnu tak hocikto moze okolo nej prejst ...a neviem ako to spravit sorry ale som zaciatocnik v pawne za pomoc vopred dakujem Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 tak sa da kolko na povodnu tak hocikto moze okolo nej prejst ...a neviem ako to spravit Tomuto nechápem Link to comment Share on other sites More sharing options...
0 lukyno010 0 Odesláno: 8. Březen, 2012 Author Share Odesláno: 8. Březen, 2012 ze ked sa zavrie nema taku rotaciu ako mala na zaciatku Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 dávaš iné súradnice Link to comment Share on other sites More sharing options...
0 lukyno010 0 Odesláno: 8. Březen, 2012 Author Share Odesláno: 8. Březen, 2012 suradnice davam rovnake len do funkcie kde je zatvaranie brany uz nemozem dat suradnice rotacie lebo mi to vyhodi chybu C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition Link to comment Share on other sites More sharing options...
0 lukyno010 0 Odesláno: 8. Březen, 2012 Author Share Odesláno: 8. Březen, 2012 takze nikto nevie ako to spravit?? Link to comment Share on other sites More sharing options...
0 -E-o-P-Shejdy 0 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 Zkus do zavírání dát tu samou pozici jako když je zavřená + rotaci. X, Y, Z ti jenom s ní pohne, neotočí ji. proto tam je to rX ( rotation X) ... Link to comment Share on other sites More sharing options...
0 lukyno010 0 Odesláno: 8. Březen, 2012 Author Share Odesláno: 8. Březen, 2012 vsak som pisal ze ked to tam doplnim tak mi naskocia chyby ktore su uz vyssie pridane Link to comment Share on other sites More sharing options...
0 -E-o-P-Shejdy 0 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 Jak ti tohle může psát errory? MoveObject(objekt, X, Y, Z, speed, rX, rY, rZ); Možná jsi jen vyměnil //edit ukaž prosím tě, jak to máš. Link to comment Share on other sites More sharing options...
0 lukyno010 0 Odesláno: 8. Březen, 2012 Author Share Odesláno: 8. Březen, 2012 no mam to takto : #include new brana; new brana1; public OnFilterScriptInit() { brana = CreateObject(969, 2087.97, 1642.77, 10.00, 0.00, 0.00, 90.00 ); brana1 = CreateObject(969, 2094.12, 1715.54, 10.00, 0.00, 0.00, 65.00); CreateObject(3749, 2089.89, 1645.70, 15.00, 0.00, 0.00, 90.00); CreateObject(971, 82.60, 1648.44, 15.00, 0.00, 0.00, 90.00); CreateObject(971, 82.60, 1648.44, 15.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.78, 1637.49, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.84, 1627.19, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.84, 1611.61, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.86, 1601.33, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.86, 1591.00, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.95, 1580.67, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.98, 1570.35, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.96, 1560.00, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.02, 1549.74, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2093.16, 1543.43, 11.00, 0.00, 0.00, 0.00); CreateObject(8674, 2088.05, 1548.34, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.28, 1659.91, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.26, 1670.15, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.25, 1680.32, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.38, 1689.36, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.34, 1698.23, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2090.53, 1707.97, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2091.90, 1710.71, 10.00, 0.00, 0.00, 65.00); CreateObject(3749, 2098.41, 1720.15, 15.00, 0.00, 0.00, 65.00); CreateObject(8674, 2100.58, 1728.29, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2104.98, 1737.59, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2109.32, 1746.95, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2113.61, 1755.70, 11.00, 0.00, 0.00, 63.00); CreateObject(8674, 2115.15, 1758.80, 11.00, 0.00, 0.00, 63.00); CreateObject(8674, 2087.87, 1616.88, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2094.75, 1715.98, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2100.54, 1724.83, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2025.30, 1012.50, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2022.85, 1012.45, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2021.18, 1003.26, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2024.16, 1003.30, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2022.96, 1003.88, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 1969.07, 1003.77, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2022.99, 1011.22, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.07, 1013.96, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.24, 1018.47, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.16, 1016.27, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.34, 1020.79, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.58, 1001.89, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.58, 999.56, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.42, 997.23, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.46, 996.37, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2019.97, 999.34, 11.00, 90.00, 0.00, 0.00); CreateObject(18648, 2021.13, 1014.43, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 1855.18, 919.82, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 2019.25, 1014.30, 11.00, 90.00, 0.00, 0.00); CreateObject(18648, 2020.39, 999.59, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 2022.94, 1006.21, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2022.87, 1008.47, 14.00, 0.00, 0.00, 0.00); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/o",cmdtext,true) == 0) { MoveObject(brana, 2087.97, 1642.77, 0.00, 3); MoveObject(brana1, 2094.12, 1715.54, 0.00, 3); return 1; } if (strcmp("/z",cmdtext, true) == 0) { MoveObject(brana, 2087.97, 1642.77, 10.00,0.00, 0.00, 90.00, 3, 0.00, 0.00,65.00); MoveObject(brana1, 2094.12, 1715.54, 10.00, 0.00, 0.00, 65.00, 3, 0.00, 0.00,65.00); return 1; } return 0; } a chyby: C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Warnings. Link to comment Share on other sites More sharing options...
0 VoDnIk168 0 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 no mam to takto : #include new brana; new brana1; public OnFilterScriptInit() { brana = CreateObject(969, 2087.97, 1642.77, 10.00, 0.00, 0.00, 90.00 ); brana1 = CreateObject(969, 2094.12, 1715.54, 10.00, 0.00, 0.00, 65.00); CreateObject(3749, 2089.89, 1645.70, 15.00, 0.00, 0.00, 90.00); CreateObject(971, 82.60, 1648.44, 15.00, 0.00, 0.00, 90.00); CreateObject(971, 82.60, 1648.44, 15.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.78, 1637.49, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.84, 1627.19, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.84, 1611.61, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.86, 1601.33, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.86, 1591.00, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.95, 1580.67, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.98, 1570.35, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.96, 1560.00, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.02, 1549.74, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2093.16, 1543.43, 11.00, 0.00, 0.00, 0.00); CreateObject(8674, 2088.05, 1548.34, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.28, 1659.91, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.26, 1670.15, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.25, 1680.32, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.38, 1689.36, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.34, 1698.23, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2090.53, 1707.97, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2091.90, 1710.71, 10.00, 0.00, 0.00, 65.00); CreateObject(3749, 2098.41, 1720.15, 15.00, 0.00, 0.00, 65.00); CreateObject(8674, 2100.58, 1728.29, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2104.98, 1737.59, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2109.32, 1746.95, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2113.61, 1755.70, 11.00, 0.00, 0.00, 63.00); CreateObject(8674, 2115.15, 1758.80, 11.00, 0.00, 0.00, 63.00); CreateObject(8674, 2087.87, 1616.88, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2094.75, 1715.98, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2100.54, 1724.83, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2025.30, 1012.50, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2022.85, 1012.45, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2021.18, 1003.26, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2024.16, 1003.30, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2022.96, 1003.88, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 1969.07, 1003.77, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2022.99, 1011.22, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.07, 1013.96, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.24, 1018.47, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.16, 1016.27, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.34, 1020.79, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.58, 1001.89, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.58, 999.56, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.42, 997.23, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.46, 996.37, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2019.97, 999.34, 11.00, 90.00, 0.00, 0.00); CreateObject(18648, 2021.13, 1014.43, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 1855.18, 919.82, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 2019.25, 1014.30, 11.00, 90.00, 0.00, 0.00); CreateObject(18648, 2020.39, 999.59, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 2022.94, 1006.21, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2022.87, 1008.47, 14.00, 0.00, 0.00, 0.00); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/o",cmdtext,true) == 0) { MoveObject(brana, 2087.97, 1642.77, 0.00, 3); MoveObject(brana1, 2094.12, 1715.54, 0.00, 3); return 1; } if (strcmp("/z",cmdtext, true) == 0) { MoveObject(brana, 2087.97, 1642.77, 10.00,0.00, 0.00, 90.00, 3, 0.00, 0.00,65.00); MoveObject(brana1, 2094.12, 1715.54, 10.00, 0.00, 0.00, 65.00, 3, 0.00, 0.00,65.00); return 1; } return 0; } a chyby: C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(75) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition C:\Users\lukas\Desktop\casino.pwn(76) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Warnings. proštuduj si http://wiki.sa-mp.com/wiki/MoveObject ID X Y Z RYCHLOST MoveObject(brana, 2087.97, 1642.77, 10.00, 65.00); MoveObject(brana1, 2094.12, 1715.54, 10.00, 65.00); Link to comment Share on other sites More sharing options...
0 Dajko 1 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 Sprav si podľa toho #define FILTERSCRIPT #include #if defined FILTERSCRIPT #define COLOR_BLUE 0x2641FEAA #define COLOR_LIGHTRED 0xFF6347AA forward IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy); new door1; new door2; new door3; AntiDeAMX() { new a[][] = { "Unarmed (Fist)", "Brass K" }; #pragma unused a } stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; } public OnFilterScriptInit() { AntiDeAMX(); print("\n--------------------------------------"); print("Príklad by Dajko"); print("--------------------------------------\n"); door1 = CreateObject(ID objektu, suradnice); door2 = CreateObject(ID objektu, suradnice); door3 = CreateObject(ID objektu, suradnice); CreateObject...//objekty return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print("Priklad by Dajko"); print("----------------------------------\n"); } #endif public OnPlayerConnect(playerid) { SendClientMessage(playerid,COLOR_LIGHTRED,"Priklad by Dajko"); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if( !strcmp(cmdtext,"/otvorit",true )) { MoveObject(door1, suradnice,rychlost pr. 2.0); SendClientMessage(playerid, COLOR_BLUE,"Brána otvorená"); return 1; } if( !strcmp(cmdtext,"/otvorit2",true )) { MoveObject(door2, suradnice,rychlost pr. 2.0); SendClientMessage(playerid, COLOR_BLUE,"Brána otvorená"); return 1; } if( !strcmp(cmdtext,"/otvorit3",true )) { MoveObject(door3, suradnice, rychlost pr. 2.0); SendClientMessage(playerid, COLOR_BLUE,"Brána otvorená"); return 1; } if( !strcmp(cmdtext,"/zavriet",true )) { MoveObject(door1, suradnice, rychlost pr. 2.0); SendClientMessage(playerid, COLOR_BLUE,"Braná zatvorená"); return 1; } if( !strcmp(cmdtext,"/zavriet2",true )) { MoveObject(door2, suradnice,rychlost pr. 0.5); SendClientMessage(playerid, COLOR_BLUE,"Braná zatvorená"); return 1; } if( !strcmp(cmdtext,"/zavriet3",true )) { MoveObject(door3, suradnice,rychlost pr. 0.2); SendClientMessage(playerid, COLOR_BLUE,"Braná zatvorena"); return 1; } if (!strcmp("/teleport",cmdtext,true)) { SetPlayerInterior(playerid,0); if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { LinkVehicleToInterior(GetPlayerVehicleID(playerid),0); SetVehiclePos(GetPlayerVehicleID(playerid), suradnice); SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0000); } else { SetPlayerPos(playerid, suradnice); SetPlayerFacingAngle(playerid,0.0000); } SendClientMessage(playerid,COLOR_LIGHTRED,"bol si teleportovany"); return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 VoDnIk168 0 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 Sprav si podľa toho #define FILTERSCRIPT #include #if defined FILTERSCRIPT #define COLOR_BLUE 0x2641FEAA #define COLOR_LIGHTRED 0xFF6347AA forward IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy); new door1; new door2; new door3; AntiDeAMX() { new a[][] = { "Unarmed (Fist)", "Brass K" }; #pragma unused a } stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; } public OnFilterScriptInit() { AntiDeAMX(); print("\n--------------------------------------"); print("Príklad by Dajko"); print("--------------------------------------\n"); door1 = CreateObject(ID objektu, suradnice); door2 = CreateObject(ID objektu, suradnice); door3 = CreateObject(ID objektu, suradnice); CreateObject...//objekty return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print("Priklad by Dajko"); print("----------------------------------\n"); } #endif public OnPlayerConnect(playerid) { SendClientMessage(playerid,COLOR_LIGHTRED,"Priklad by Dajko"); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if( !strcmp(cmdtext,"/otvorit",true )) { MoveObject(door1, suradnice,rychlost pr. 2.0); SendClientMessage(playerid, COLOR_BLUE,"Brána otvorená"); return 1; } if( !strcmp(cmdtext,"/otvorit2",true )) { MoveObject(door2, suradnice,rychlost pr. 2.0); SendClientMessage(playerid, COLOR_BLUE,"Brána otvorená"); return 1; } if( !strcmp(cmdtext,"/otvorit3",true )) { MoveObject(door3, suradnice, rychlost pr. 2.0); SendClientMessage(playerid, COLOR_BLUE,"Brána otvorená"); return 1; } if( !strcmp(cmdtext,"/zavriet",true )) { MoveObject(door1, suradnice, rychlost pr. 2.0); SendClientMessage(playerid, COLOR_BLUE,"Braná zatvorená"); return 1; } if( !strcmp(cmdtext,"/zavriet2",true )) { MoveObject(door2, suradnice,rychlost pr. 0.5); SendClientMessage(playerid, COLOR_BLUE,"Braná zatvorená"); return 1; } if( !strcmp(cmdtext,"/zavriet3",true )) { MoveObject(door3, suradnice,rychlost pr. 0.2); SendClientMessage(playerid, COLOR_BLUE,"Braná zatvorena"); return 1; } if (!strcmp("/teleport",cmdtext,true)) { SetPlayerInterior(playerid,0); if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { LinkVehicleToInterior(GetPlayerVehicleID(playerid),0); SetVehiclePos(GetPlayerVehicleID(playerid), suradnice); SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0000); } else { SetPlayerPos(playerid, suradnice); SetPlayerFacingAngle(playerid,0.0000); } SendClientMessage(playerid,COLOR_LIGHTRED,"bol si teleportovany"); return 1; } return 0; } neházej mu sem blbosti, kdyby si se podíval na error, tak vidíš že má moc argumentů v MoveObject a nemusíš mu sem házet takovíhle blbosti Link to comment Share on other sites More sharing options...
0 Dajko 1 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 Mu chcem iba pomôcť napísal že je začiatočník... Link to comment Share on other sites More sharing options...
0 VoDnIk168 0 Odesláno: 8. Březen, 2012 Share Odesláno: 8. Březen, 2012 Mu chcem iba pomôcť napísal že je začiatočník... ale když už má code tak ho nepleť blbostma, ps to si mu pomoh MoveObject(door3, suradnice, rychlost pr. 2.0); když má blbě zadaný souřadnice tak by udělal zase chybu kdyby si tam aspoň dal MoveObject(door3, X,Y,Z, rychlost pr. 2.0); a jinak lukyno010 tady máš opravenej code.. #include new brana; new brana1; public OnFilterScriptInit() { brana = CreateObject(969, 2087.97, 1642.77, 10.00, 0.00, 0.00, 90.00 ); brana1 = CreateObject(969, 2094.12, 1715.54, 10.00, 0.00, 0.00, 65.00); CreateObject(3749, 2089.89, 1645.70, 15.00, 0.00, 0.00, 90.00); CreateObject(971, 82.60, 1648.44, 15.00, 0.00, 0.00, 90.00); CreateObject(971, 82.60, 1648.44, 15.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.78, 1637.49, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.84, 1627.19, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.84, 1611.61, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.86, 1601.33, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.86, 1591.00, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.95, 1580.67, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.98, 1570.35, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.96, 1560.00, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.02, 1549.74, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2093.16, 1543.43, 11.00, 0.00, 0.00, 0.00); CreateObject(8674, 2088.05, 1548.34, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.28, 1659.91, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.26, 1670.15, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.25, 1680.32, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.38, 1689.36, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.34, 1698.23, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2090.53, 1707.97, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2091.90, 1710.71, 10.00, 0.00, 0.00, 65.00); CreateObject(3749, 2098.41, 1720.15, 15.00, 0.00, 0.00, 65.00); CreateObject(8674, 2100.58, 1728.29, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2104.98, 1737.59, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2109.32, 1746.95, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2113.61, 1755.70, 11.00, 0.00, 0.00, 63.00); CreateObject(8674, 2115.15, 1758.80, 11.00, 0.00, 0.00, 63.00); CreateObject(8674, 2087.87, 1616.88, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2094.75, 1715.98, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2100.54, 1724.83, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2025.30, 1012.50, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2022.85, 1012.45, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2021.18, 1003.26, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2024.16, 1003.30, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2022.96, 1003.88, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 1969.07, 1003.77, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2022.99, 1011.22, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.07, 1013.96, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.24, 1018.47, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.16, 1016.27, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.34, 1020.79, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.58, 1001.89, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.58, 999.56, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.42, 997.23, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.46, 996.37, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2019.97, 999.34, 11.00, 90.00, 0.00, 0.00); CreateObject(18648, 2021.13, 1014.43, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 1855.18, 919.82, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 2019.25, 1014.30, 11.00, 90.00, 0.00, 0.00); CreateObject(18648, 2020.39, 999.59, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 2022.94, 1006.21, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2022.87, 1008.47, 14.00, 0.00, 0.00, 0.00); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/o",cmdtext,true) == 0) { MoveObject(brana, 2087.97, 1642.77, 0.00, 3); MoveObject(brana1, 2094.12, 1715.54, 0.00, 3); return 1; } if (strcmp("/z",cmdtext, true) == 0) { MoveObject(brana, 2087.97, 1642.77, 10.00,65.00); MoveObject(brana1, 2094.12, 1715.54, 10.00,65.00); return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 lukyno010 0 Odesláno: 8. Březen, 2012 Author Share Odesláno: 8. Březen, 2012 a jinak lukyno010 tady máš opravenej code.. #include new brana; new brana1; public OnFilterScriptInit() { brana = CreateObject(969, 2087.97, 1642.77, 10.00, 0.00, 0.00, 90.00 ); brana1 = CreateObject(969, 2094.12, 1715.54, 10.00, 0.00, 0.00, 65.00); CreateObject(3749, 2089.89, 1645.70, 15.00, 0.00, 0.00, 90.00); CreateObject(971, 82.60, 1648.44, 15.00, 0.00, 0.00, 90.00); CreateObject(971, 82.60, 1648.44, 15.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.78, 1637.49, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.84, 1627.19, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.84, 1611.61, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.86, 1601.33, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.86, 1591.00, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.95, 1580.67, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.98, 1570.35, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2087.96, 1560.00, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.02, 1549.74, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2093.16, 1543.43, 11.00, 0.00, 0.00, 0.00); CreateObject(8674, 2088.05, 1548.34, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.28, 1659.91, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.26, 1670.15, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.25, 1680.32, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.38, 1689.36, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2088.34, 1698.23, 11.00, 0.00, 0.00, 90.00); CreateObject(8674, 2090.53, 1707.97, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2091.90, 1710.71, 10.00, 0.00, 0.00, 65.00); CreateObject(3749, 2098.41, 1720.15, 15.00, 0.00, 0.00, 65.00); CreateObject(8674, 2100.58, 1728.29, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2104.98, 1737.59, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2109.32, 1746.95, 11.00, 0.00, 0.00, 65.00); CreateObject(8674, 2113.61, 1755.70, 11.00, 0.00, 0.00, 63.00); CreateObject(8674, 2115.15, 1758.80, 11.00, 0.00, 0.00, 63.00); CreateObject(8674, 2087.87, 1616.88, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2094.75, 1715.98, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2100.54, 1724.83, 11.00, 0.00, 0.00, 90.00); CreateObject(18648, 2025.30, 1012.50, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2022.85, 1012.45, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2021.18, 1003.26, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2024.16, 1003.30, 10.00, 0.00, 0.00, 90.00); CreateObject(18648, 2022.96, 1003.88, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 1969.07, 1003.77, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2022.99, 1011.22, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.07, 1013.96, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.24, 1018.47, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.16, 1016.27, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.34, 1020.79, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.58, 1001.89, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.58, 999.56, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.42, 997.23, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2027.46, 996.37, 10.00, 0.00, 0.00, 0.00); CreateObject(18648, 2019.97, 999.34, 11.00, 90.00, 0.00, 0.00); CreateObject(18648, 2021.13, 1014.43, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 1855.18, 919.82, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 2019.25, 1014.30, 11.00, 90.00, 0.00, 0.00); CreateObject(18648, 2020.39, 999.59, 15.00, 90.00, 0.00, 0.00); CreateObject(18648, 2022.94, 1006.21, 14.00, 0.00, 0.00, 0.00); CreateObject(18648, 2022.87, 1008.47, 14.00, 0.00, 0.00, 0.00); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/o",cmdtext,true) == 0) { MoveObject(brana, 2087.97, 1642.77, 0.00, 3); MoveObject(brana1, 2094.12, 1715.54, 0.00, 3); return 1; } if (strcmp("/z",cmdtext, true) == 0) { MoveObject(brana, 2087.97, 1642.77, 10.00,65.00); MoveObject(brana1, 2094.12, 1715.54, 10.00,65.00); return 1; } return 0; } 00, 0 aj tak to nejde chybu sice nehadze ale brana je stale po zatvoreni zle otocena EDIT: ak sa to neda tak rovno povedzte lebo som poskusal uz mnoho kmbinacii co ste tu podavali ale ani jedna nejde..ale aj tak dakujem Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 9. Březen, 2012 Share Odesláno: 9. Březen, 2012 boze, niektorych z vas nechapem, on ma zly native! pri moveobject bola rotacia pridana az v 0.3d a ti ktory maju starsi includ a_objects.inc tam maju native MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed);, ale v 0.3d ma byt native MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);. Otvor subor a_objects.inc v zlozke "includes" a prepis to Link to comment Share on other sites More sharing options...
0 lukyno010 0 Odesláno: 10. Březen, 2012 Author Share Odesláno: 10. Březen, 2012 ano ide to dakujem ti lyrics Link to comment Share on other sites More sharing options...
Dotaz
lukyno010 0
cawte ja som si spravil branu aj ja mi otvara len ked ju chcem uz zatvorit tak sa da kolko na povodnu tak hocikto moze okolo nej prejst ...a neviem ako to spravit
sorry ale som zaciatocnik v pawne za pomoc vopred dakujem
Link to comment
Share on other sites
17 odpovědí na tuto otázku
Recommended Posts