SparcoCZ 0 Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 Prosimvas mam kod na to abych se dostal na urad kdyz stoupnu na pickup ale nejak nevim kam ho dat // ---[ 00 ]---[ Urad - VCHOD ]--------------------------| if(IsPlayerInArea(i,-1551.0052,1171.8087,7.1875,3) == 1) { SetPlayerInterior(i, 10); SetPlayerPos(i,246.5165,113.3684,1003.2188); SetPlayerFacingAngle(i, 359.2381); SetCameraBehindPlayer(i); } Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 public OnPlayerPickUpPickup { // SEM return 1; } // Najdi si ten public, neco tam jeste je za (), jako playerid ted nevim Link to comment Share on other sites More sharing options...
0 SparcoCZ 0 Odesláno: 13. Březen, 2010 Author Share Odesláno: 13. Březen, 2010 Prosimvas nemate nekdo lpesi kod na to ze kdyz si stoupnu na PickUp tak me to hodi do nejakeho interieru ? tenhle mi haze errory Link to comment Share on other sites More sharing options...
0 Guest scopers Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 napis errory a pozriem sa nato Link to comment Share on other sites More sharing options...
0 SparcoCZ 0 Odesláno: 13. Březen, 2010 Author Share Odesláno: 13. Březen, 2010 C:\Documents and Settings\martin\Plocha\newmod.pwn(747) : warning 217: loose indentation C:\Documents and Settings\martin\Plocha\newmod.pwn(747) : error 017: undefined symbol "IsPlayerInArea" C:\Documents and Settings\martin\Plocha\newmod.pwn(749) : error 017: undefined symbol "i" C:\Documents and Settings\martin\Plocha\newmod.pwn(750) : error 017: undefined symbol "i" C:\Documents and Settings\martin\Plocha\newmod.pwn(751) : error 017: undefined symbol "i" C:\Documents and Settings\martin\Plocha\newmod.pwn(752) : error 017: undefined symbol "i" Link to comment Share on other sites More sharing options...
0 Guest scopers Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 vies co dohodnime sa takto pridaj si ma na skype peto-199 a posles mi to tam ti to urobim lebo takto ti to neviem povedat Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 Nahoru #define i playerid a IsPlayerInArea mas TuT zde - http://www.pawno.cz/./viewtopic.php?f=8&t=6544 + nahoru #pragma tabsize 0; nebo si to pomoci TABu ten radek "odtabuj" Link to comment Share on other sites More sharing options...
0 Skemr 0 Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 #pragma tabsize 0//nahoru k includum misto toho i si dej playerid nebbo si to dej do ciklusu for: for(new i=0; i { a mezi stocky: IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius) { if(GetPlayerDistanceToPointEx(playerid,x,y,z) < radius) { return 1; } return 0; } GetPlayerDistanceToPointEx(playerid,Float:x,Float:y,Float:z) { new Float:x1,Float:y1,Float:z1; new Float:tmpdis; GetPlayerPos(playerid,x1,y1,z1); tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+floatpower(floatabs(floatsub(y,y1)),2)+floatpower(floatabs(floatsub(z,z1)),2)); return floatround(tmpdis); } Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 Proc by si mel davat cyklus? :D :D Link to comment Share on other sites More sharing options...
0 Skemr 0 Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 nevim...jako druha varianta....ale ja osobne bych vsechny i prepsal na playerid....sakra si me predbehl..... Link to comment Share on other sites More sharing options...
0 SparcoCZ 0 Odesláno: 13. Březen, 2010 Author Share Odesláno: 13. Březen, 2010 tak sem to udelal takto: // ---[ 00 ]---[ Urad - VCHOD ]--------------------------| if(IsPlayerInArea(playerid,-1551.0052,1171.8087,7.1875,3) == 1) { SetPlayerInterior(playerid, 10); SetPlayerPos(playerid,246.5165,113.3684,1003.2188); SetPlayerFacingAngle(playerid, 359.2381); SetCameraBehindPlayer(playerid); } a mam jeste jeden error error 017: undefined symbol "IsPlayerInArea" Link to comment Share on other sites More sharing options...
0 Skemr 0 Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 public OnPlayerPickUpPickup(playerid, pickupid) { // ---[ 00 ]---[ Urad - VCHOD ]--------------------------| if(IsPlayerInSphere(playerid,-1551.0052,1171.8087,7.1875,3)) { SetPlayerInterior(playerid, 10); SetPlayerPos(playerid,246.5165,113.3684,1003.2188); SetPlayerFacingAngle(playerid, 359.2381); SetCameraBehindPlayer(playerid); } return 1; } A nahoru, mezi stocky si dej: IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius) { if(GetPlayerDistanceToPointEx(playerid,x,y,z) < radius) { return 1; } return 0; } GetPlayerDistanceToPointEx(playerid,Float:x,Float:y,Float:z) { new Float:x1,Float:y1,Float:z1; new Float:tmpdis; GetPlayerPos(playerid,x1,y1,z1); tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+floatpower(floatabs(floatsub(y,y1)),2)+floatpower(floatabs(floatsub(z,z1)),2)); return floatround(tmpdis); } A ted by to melo jit :thumbup: IsPlayerInArea je uplne jina funkce. Uč se: http://www.pawno.cz/viewtopic.php?f=8&t=558&st=0&sk=t&sd=a&hilit=isplayerinarea Link to comment Share on other sites More sharing options...
0 SparcoCZ 0 Odesláno: 13. Březen, 2010 Author Share Odesláno: 13. Březen, 2010 Prosim vas tak nakonec ten kod mam takto // ---[ 00 ]---[ Urad - VCHOD ]--------------------------| if(IsPlayerInSphere(playerid,-1551.0052,1171.8087,7.1875,3) == 1) { SetPlayerInterior(playerid, 10); SetPlayerPos(playerid,246.5165,113.3684,1003.2188); SetPlayerFacingAngle(playerid, 359.2381); SetCameraBehindPlayer(playerid); } a kdyz vlezu na pickup tak me to do toho interieru uradu nehodi nic se proste nestane co s tim pls Link to comment Share on other sites More sharing options...
0 Skemr 0 Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 IsPlayerSphere...musis mit stejne souradky jako ten pickup Link to comment Share on other sites More sharing options...
0 SparcoCZ 0 Odesláno: 13. Březen, 2010 Author Share Odesláno: 13. Březen, 2010 to mam : if(IsPlayerInSphere(playerid,-1551.0052,1171.8087,7.1875,3) == 1) CreatePickup(1318,1,-1551.0052,1171.8087,7.1875); // Urad vztup Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 public OnPlayerPickUpPickup(playerid, pickupid) { // MAS TO TADY? return 1; } Link to comment Share on other sites More sharing options...
0 SparcoCZ 0 Odesláno: 13. Březen, 2010 Author Share Odesláno: 13. Březen, 2010 co myslis jestly tam mam ? Link to comment Share on other sites More sharing options...
0 Guest scopers Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 ved som ti to spravil a posielal na skype ale uz si tam neni Link to comment Share on other sites More sharing options...
0 Skemr 0 Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 udelej to takhle....tu jednicku tam nedavej public OnPlayerPickUpPickup(playerid, pickupid) { // ---[ 00 ]---[ Urad - VCHOD ]--------------------------| if(IsPlayerInSphere(playerid,-1551.0052,1171.8087,7.1875,3)) { SetPlayerInterior(playerid, 10); SetPlayerPos(playerid,246.5165,113.3684,1003.2188); SetPlayerFacingAngle(playerid, 359.2381); SetCameraBehindPlayer(playerid); } return 1; } Link to comment Share on other sites More sharing options...
0 Guest scopers Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 pod na skype ja to mam uz davno hotove len si odisiel Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 pod na skype ja to mam uz davno hotove len si odisiel Co tady spamujes omg, napis mu SZ Link to comment Share on other sites More sharing options...
0 Guest scopers Odesláno: 13. Březen, 2010 Share Odesláno: 13. Březen, 2010 kuš Link to comment Share on other sites More sharing options...
Dotaz
SparcoCZ 0
Prosimvas mam kod na to abych se dostal na urad kdyz stoupnu na pickup ale nejak nevim kam ho dat
// ---[ 00 ]---[ Urad - VCHOD ]--------------------------| if(IsPlayerInArea(i,-1551.0052,1171.8087,7.1875,3) == 1)
{ SetPlayerInterior(i, 10);
SetPlayerPos(i,246.5165,113.3684,1003.2188);
SetPlayerFacingAngle(i, 359.2381);
SetCameraBehindPlayer(i); }
Link to comment
Share on other sites
21 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now