Helius 0 Odesláno: 16. Říjen, 2010 Share Odesláno: 16. Říjen, 2010 Když se chci portnout na uložené místo tak mě to portne do blueberry new Float:locXA[MAX_PLAYERS]; new Float:locYA[MAX_PLAYERS]; new Float:locZA[MAX_PLAYERS]; new interFA[MAX_PLAYERS]; if (!strcmp(cmdtext, "/locmy", true)) { GetPlayerPos(playerid, locXA[playerid], locYA[playerid], locZA[playerid]); interFA[playerid] = GetPlayerInterior(playerid); SendClientMessage(playerid, 0x33AA33AA, "Ulozil sis svou pozici"); return true; } if (!strcmp(cmdtext, "/tolocmy", true)) { SetPlayerInterior(playerid,interFA[playerid]); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), locXA[playerid], locYA[playerid], locZA[playerid]); SendClientMessage(playerid, 0x33AA33AA, "| * | Portnul jsi se na svoji ulozenou pozici"); } else { SetPlayerPos(playerid, locXA[playerid], locYA[playerid], locZA[playerid]); SendClientMessage(playerid, 0x33AA33AA, "| * | Portnul jsi se na svoji ulozenou pozici"); } return true; } Link to comment Share on other sites More sharing options...
0 Lax. 28 Odesláno: 16. Říjen, 2010 Share Odesláno: 16. Říjen, 2010 Skus dcmd_loc(playerid, params[]){ #pragma unused params SendClientMessage(playerid,COLOR_WHITE,"[ ! ] Pozice uložena [ ! ]"); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ GetVehiclePos(GetPlayerVehicleID(playerid),poziceX,poziceY,poziceZ); GetVehicleZAngle(GetPlayerVehicleID(playerid),poziceR); }else{ GetPlayerPos(playerid,poziceX,poziceY,poziceZ); GetPlayerFacingAngle(playerid,poziceR); } return 1; } dcmd_toloc(playerid, params[]){ #pragma unused params SendClientMessage(playerid,COLOR_WHITE,"[ ! ] Pozice nahraná [ ! ]"); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ SetVehiclePos(GetPlayerVehicleID(playerid),poziceX,poziceY,poziceZ); SetVehicleZAngle(GetPlayerVehicleID(playerid),poziceR); }else{ SetPlayerPos(playerid,poziceX,poziceY,poziceZ); SetPlayerFacingAngle(playerid,poziceR); } return 1; } Link to comment Share on other sites More sharing options...
0 SweS 0 Odesláno: 16. Říjen, 2010 Share Odesláno: 16. Říjen, 2010 a kde máš súradnice?? Link to comment Share on other sites More sharing options...
0 Lax. 28 Odesláno: 16. Říjen, 2010 Share Odesláno: 16. Říjen, 2010 SwAmPerT":2zraiqvz]a kde máš súradnice?? Naco suradnice ak chce ukladanie pozicie ?? Link to comment Share on other sites More sharing options...
0 Helius 0 Odesláno: 16. Říjen, 2010 Author Share Odesláno: 16. Říjen, 2010 ty si nepamatujes co bylo na RZ ve vip loc toloc ? uz nepamatujes kdo by pamatoval xD loc si ulozim pozici na ktere prave jsem, toloc se na ni portnu ;-) -- sob 16. říj 2010 18:57:00 -- Mafiane ten tvuj kod jsem upravil aby mi to sedělo ale pořád tam mám nějaké errory dcmd_loc(playerid, params[]){ #pragma unused params SendClientMessage(playerid,0x33AA33AA,"[ ! ] Pozice uložena [ ! ]"); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ GetVehiclePos(GetPlayerVehicleID(playerid),locXA[playerid], locYA[playerid], locZA[playerid]); GetVehicleZAngle(GetPlayerVehicleID(playerid),locRA[playerid]); interFA[playerid] = GetPlayerInterior(playerid); }else{ GetPlayerPos(playerid,locXA[playerid], locYA[playerid], locZA[playerid]); GetPlayerFacingAngle(playerid,locRA[playerid]); interFA[playerid] = GetPlayerInterior(playerid); } return 1; } dcmd_toloc(playerid, params[]){ #pragma unused params SendClientMessage(playerid,0x33AA33AA,"[ ! ] Pozice nahraná [ ! ]"); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ SetVehiclePos(GetPlayerVehicleID(playerid),locXA[playerid], locYA[playerid], locZA[playerid]); SetVehicleZAngle(GetPlayerVehicleID(playerid),locRA[playerid]); SetPlayerInterior(playerid,interFA[playerid]); }else{ SetPlayerPos(playerid,locXA[playerid], locYA[playerid], locZA[playerid]); SetPlayerFacingAngle(playerid,locRA[playerid]); SetPlayerInterior(playerid,interFA[playerid]); } return 1; } D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1772) : error 017: undefined symbol "dcmd_loc" D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1773) : error 017: undefined symbol "params" D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1788) : warning 225: unreachable code D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1788) : error 017: undefined symbol "dcmd_toloc" D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1789) : error 017: undefined symbol "params" D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1833) : warning 225: unreachable code Link to comment Share on other sites More sharing options...
0 Petr 44 Odesláno: 16. Říjen, 2010 Share Odesláno: 16. Říjen, 2010 ty si nepamatujes co bylo na RZ ve vip loc toloc ? uz nepamatujes kdo by pamatoval xD loc si ulozim pozici na ktere prave jsem, toloc se na ni portnu ;-) -- sob 16. říj 2010 18:57:00 -- Mafiane ten tvuj kod jsem upravil aby mi to sedělo ale pořád tam mám nějaké errory dcmd_loc(playerid, params[]){ #pragma unused params SendClientMessage(playerid,0x33AA33AA,"[ ! ] Pozice uložena [ ! ]"); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ GetVehiclePos(GetPlayerVehicleID(playerid),locXA[playerid], locYA[playerid], locZA[playerid]); GetVehicleZAngle(GetPlayerVehicleID(playerid),locRA[playerid]); interFA[playerid] = GetPlayerInterior(playerid); }else{ GetPlayerPos(playerid,locXA[playerid], locYA[playerid], locZA[playerid]); GetPlayerFacingAngle(playerid,locRA[playerid]); interFA[playerid] = GetPlayerInterior(playerid); } return 1; } dcmd_toloc(playerid, params[]){ #pragma unused params SendClientMessage(playerid,0x33AA33AA,"[ ! ] Pozice nahraná [ ! ]"); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ SetVehiclePos(GetPlayerVehicleID(playerid),locXA[playerid], locYA[playerid], locZA[playerid]); SetVehicleZAngle(GetPlayerVehicleID(playerid),locRA[playerid]); SetPlayerInterior(playerid,interFA[playerid]); }else{ SetPlayerPos(playerid,locXA[playerid], locYA[playerid], locZA[playerid]); SetPlayerFacingAngle(playerid,locRA[playerid]); SetPlayerInterior(playerid,interFA[playerid]); } return 1; } D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1772) : error 017: undefined symbol "dcmd_loc" D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1773) : error 017: undefined symbol "params" D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1788) : warning 225: unreachable code D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1788) : error 017: undefined symbol "dcmd_toloc" D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1789) : error 017: undefined symbol "params" D:\Program Files\Rockstar Games\GTA San Andreas\modyatd\drift mod\gamemodes\Driftv3.5b.pwn(1833) : warning 225: unreachable code nedal si to náhodou do OnPlayerCommandText? pokud jo, tak to dej mimo public Link to comment Share on other sites More sharing options...
0 Danny 37 Odesláno: 16. Říjen, 2010 Share Odesláno: 16. Říjen, 2010 Hledat Link to comment Share on other sites More sharing options...
0 Lax. 28 Odesláno: 16. Říjen, 2010 Share Odesláno: 16. Říjen, 2010 Ved hore : new Float:poziceX,Float:poziceY,Float:poziceZ,Float:poziceR; public OnPlayerCommandText(playerid, cmdtext[]){ dcmd(loc,3,cmdtext); dcmd(toloc,5,cmdtext); a ešte to čo som písal hore Link to comment Share on other sites More sharing options...
0 mnagy112 0 Odesláno: 16. Říjen, 2010 Share Odesláno: 16. Říjen, 2010 Hledat A ty nejsi nahodou tak trocha mimo? Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 17. Říjen, 2010 Share Odesláno: 17. Říjen, 2010 locXA[playerid], locYA[playerid], locZA[playerid] Musis to udelat jako globalni promennu tudiz bez [MAX_PLAYERS] Link to comment Share on other sites More sharing options...
0 Danny 37 Odesláno: 17. Říjen, 2010 Share Odesláno: 17. Říjen, 2010 nie niesom... lebo takýto tut tu už je Link to comment Share on other sites More sharing options...
0 C3RN3J 0 Odesláno: 18. Říjen, 2010 Share Odesláno: 18. Říjen, 2010 nahore v define bys mel mit toto :: #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 Link to comment Share on other sites More sharing options...
Dotaz
Helius 0
Když se chci portnout na uložené místo tak mě to portne do blueberry
new Float:locXA[MAX_PLAYERS];
new Float:locYA[MAX_PLAYERS];
new Float:locZA[MAX_PLAYERS];
new interFA[MAX_PLAYERS];
if (!strcmp(cmdtext, "/locmy", true))
{
GetPlayerPos(playerid, locXA[playerid], locYA[playerid], locZA[playerid]);
interFA[playerid] = GetPlayerInterior(playerid);
SendClientMessage(playerid, 0x33AA33AA, "Ulozil sis svou pozici");
return true;
}
if (!strcmp(cmdtext, "/tolocmy", true))
{
SetPlayerInterior(playerid,interFA[playerid]);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), locXA[playerid], locYA[playerid], locZA[playerid]);
SendClientMessage(playerid, 0x33AA33AA, "| * | Portnul jsi se na svoji ulozenou pozici");
}
else
{
SetPlayerPos(playerid, locXA[playerid], locYA[playerid], locZA[playerid]);
SendClientMessage(playerid, 0x33AA33AA, "| * | Portnul jsi se na svoji ulozenou pozici");
}
return true;
}
Link to comment
Share on other sites
11 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