Jump to content

Marley007

Uživatel
  • Příspěvků

    754
  • Registrován

  • Aktivní

  • Vítězných dnů

    1

Everything posted by Marley007

  1. je to od tebe hezký... ale mám tam kopu errorů... Psal jsem do helpU. Zatím pokračuju,ale nelíbí se mi to,že se mi tam kopěj errory...
  2. oh sorry já zapoměl... 166-178 if(gPlayerHasCitySelected[playerid]) { ClassSel_SetupCharSelection(playerid); return 1; } else { if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) { TogglePlayerSpectating(playerid,1); TextDrawShowForPlayer(playerid, txtClassSelHelper); gPlayerCitySelection[playerid] = -1; } } return 0; } 284-308 ClassSel_SetupCharSelection(playerid) { if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) { SetPlayerInterior(playerid,11); SetPlayerPos(playerid,508.7362,-87.4335,998.9609); SetPlayerFacingAngle(playerid,0.0); SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609); SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609); } else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,-2673.8381,1399.7424,918.3516); SetPlayerFacingAngle(playerid,181.0); SetPlayerCameraPos(playerid,-2673.2776,1394.3859,918.3516); SetPlayerCameraLookAt(playerid,-2673.8381,1399.7424,918.3516); } else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,349.0453,193.2271,1014.1797); SetPlayerFacingAngle(playerid,286.25); SetPlayerCameraPos(playerid,352.9164,194.5702,1014.1875); SetPlayerCameraLookAt(playerid,349.0453,193.2271,1014.1797); } } 308-348 } //---------------------------------------------------------- // Used to init textdraws of city names ClassSel_InitCityNameText(Text:txtInit) { TextDrawUseBox(txtInit, 0); TextDrawLetterSize(txtInit,1.25,3.0); TextDrawFont(txtInit, 0); TextDrawSetShadow(txtInit,0); TextDrawSetOutline(txtInit,1); TextDrawColor(txtInit,0xEEEEEEFF); TextDrawBackgroundColor(txtClassSelHelper,0x000000FF); } //---------------------------------------------------------- ClassSel_InitTextDraws() { // Init our observer helper text display txtLosSantos = TextDrawCreate(10.0, 380.0, "Los Santos"); ClassSel_InitCityNameText(txtLosSantos); txtSanFierro = TextDrawCreate(10.0, 380.0, "San Fierro"); ClassSel_InitCityNameText(txtSanFierro); txtLasVenturas = TextDrawCreate(10.0, 380.0, "Las Venturas"); ClassSel_InitCityNameText(txtLasVenturas); // Init our observer helper text display txtClassSelHelper = TextDrawCreate(10.0, 415.0, " Press ~b~~k~~GO_LEFT~ ~w~or ~b~~k~~GO_RIGHT~ ~w~to switch cities.~n~ Press ~r~~k~~PED_FIREWEAPON~ ~w~to select."); TextDrawUseBox(txtClassSelHelper, 1); TextDrawBoxColor(txtClassSelHelper,0x222222BB); TextDrawLetterSize(txtClassSelHelper,0.3,1.0); TextDrawTextSize(txtClassSelHelper,400.0,40.0); TextDrawFont(txtClassSelHelper, 2); TextDrawSetShadow(txtClassSelHelper,0); TextDrawSetOutline(txtClassSelHelper,1); TextDrawBackgroundColor(txtClassSelHelper,0x000000FF); TextDrawColor(txtClassSelHelper,0xFFFFFFFF); } 461-464 public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } 512-515 public OnPlayerInfoChange(playerid) { return 1; }
  3. ahojky v mém novém módu my jede jeden error za druhým... už nevím jak co spravit... zde jsou errory C:\Documents and Settings\petapl\Plocha\server\pawno\include\../include/gl_common.inc(75) : error 021: symbol already defined: "strtok" F:\rlfinsa.pwn(167) : warning 215: expression has no effect F:\rlfinsa.pwn(284 -- 285) : error 028: invalid subscript (not an array or too many subscripts): "playerid" F:\rlfinsa.pwn(284 -- 286) : error 001: expected token: "}", but found "if" F:\rlfinsa.pwn(308) : warning 209: function "OnPlayerDeath" should return a value F:\rlfinsa.pwn(313) : error 010: invalid function or declaration F:\rlfinsa.pwn(326) : error 010: invalid function or declaration F:\rlfinsa.pwn(329) : error 010: invalid function or declaration F:\rlfinsa.pwn(337) : error 010: invalid function or declaration F:\rlfinsa.pwn(461) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg") F:\rlfinsa.pwn(512) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange") F:\rlfinsa.pwn(612) : warning 203: symbol is never used: "gArmySpawns" F:\rlfinsa.pwn(612) : warning 203: symbol is never used: "gMedicalSpawns" F:\rlfinsa.pwn(612) : warning 203: symbol is never used: "gPoliceSpawns" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors. teda až na ty poslední 3 warningy Ty chápu,že jsem nepoužil tyto věci... děkuji
  4. děkuji,ale potřebuju někoho,kdo umí s pawnem,aby mi helpnul... Zatím definuju,abych vyzkoušel registraci. Díky všem co zatím napsali ;-)
  5. tak jsem se začal prokousávat,jako začátečník pawnem,mód je křížencem grandlarc a reálný život v san andreas (můj mód) z grandlarcu byly použity fnkce jako:auta,výběr města.do kterého vás to spawne (to se mi hrozně líbilo). Zatím toto bylo vylepšeno o: registraci,login,autoškolu,leteckou školu a zbrojní pas (zatím definuju funkce a hledám errory). Jsem ale totální lama,atak bych potřeboval někoho k ruce. díky Petr mód má zatím 613 řádků můj server: (status)http://www.ntpclan.com/generatory/samp/server-93.185.108.57:7777&style=2.status zatím las venturas real life (upravený mt2) nechci bejt lama,atak dělám vlastní mód... 93.185.108.57:7777
  6. tak jsem to přesunul pryč z command text a 3 errory D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(30) : error 010: invalid function or declaration D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(474) : error 010: invalid function or declaration D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : error 010: invalid function or declaration D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488) : warning 204: symbol is assigned a value that is never used: "Ridicak" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "cmd" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "dcmd_login" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "gArmySpawns" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "gMedicalSpawns" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "gPoliceSpawns" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "idx" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Errors. -- čtv 11. bře 2010 19:18:30 -- řádky s chybou
  7. dal jsem to tam takhle: public OnPlayerCommandText(playerid) { new cmd[256]; new idx; cmd = strtok(cmdtext, idx); dcmd(login,5,cmdtext); dcmd(register,8,cmdtext); //-- dcmd_login(playerid,params[]) a teď to píše tohle: D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : error 029: invalid expression, assumed zero D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : warning 215: expression has no effect D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : error 001: expected token: ";", but found ")" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : error 029: invalid expression, assumed zero D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
  8. ¨potřebuju poradit s tímto D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : error 029: invalid expression, assumed zero D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : error 029: invalid expression, assumed zero D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : error 029: invalid expression, assumed zero D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase řádek 475 je toto: dcmd(login,5,cmdtext); 4 Errors.
  9. Ahojky jsem úplně zoufalej. chci vytvářet svůj mód,ale neumím vůbec nic a nenašel jsem na fóru jak začít. Děkuju skype: administrator_cervicek
×
×
  • Create New...