Shotyoudie Geplaatst: 24 oktober 2009 Rapport Geplaatst: 24 oktober 2009 (bewerkt) heey iedereen, ik heb pas gevonden dan dcmd command beter zijn als de oude normale commands dus ik heb al me command overgezet naar dcmd maar ik blijf deze errors hebben: C:\Users\Rick\Desktop\SAMP SERVER0.3\pawno\include\JunkBuster.inc(2003) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg") C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(216) : error 017: undefined symbol "dcmd_bigjump3" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(347) : warning 217: loose indentation C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(347) : error 017: undefined symbol "dcmd_bigjump3" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(362) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. dit zijn mijn OnPlayerCommandText: public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(racetrack, 9, cmdtext); dcmd(bigjump3, 8, cmdtext); dcmd(bigjump3up, 10, cmdtext); dcmd(home, 4, cmdtext); dcmd(airportlv, 9, cmdtext); dcmd(chilliad, 8, cmdtext); dcmd(bigjump1, 8, cmdtext); dcmd(airportls, 9, cmdtext); dcmd(bounce, 6, cmdtext); dcmd(airportvm, 9, cmdtext); dcmd(airportsf, 9, cmdtext); dcmd(bigjump2, 8, cmdtext); dcmd(arch, 4, cmdtext); dcmd(ammonation, 10, cmdtext); dcmd(drag, 4, cmdtext); dcmd(duneride, 8, cmdtext); dcmd(commands, 8, cmdtext); dcmd(help, 4, cmdtext); dcmd(rules, 5, cmdtext); dcmd(parashute, 9, cmdtext); dcmd(health, 6, cmdtext); dcmd(nrg1, 4, cmdtext); dcmd(kill, 4, cmdtext); dcmd(paint, 5, cmdtext); return 0; } en me commands(weet niet of die nodig zijn): dcmd_racetrack(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 554.0462,-2840.1121,7.4550); } else { SetPlayerPos(playerid, 554.0462,-2840.1121,7.4550); { GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /racetrack.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); } return 1; } dcmd_bigjump3(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 3002.8821, -2774.7166, 1741.1636); } else { SetPlayerPos(playerid, 3002.8821, -2774.7166, 1741.1636); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /bigjump3.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); } return 1; } dcmd_bigjump3up(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 2987.5657, -3388.8926, 2290.1709); } else { SetPlayerPos(playerid, 2987.5657, -3388.8926, 2290.1709); } return 1; } dcmd_home(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -2238.0864,2353.2104,4.9802); } else { SetPlayerPos(playerid, -2238.0864,2353.2104,4.9802); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /home.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_airportlv(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 1320.4910,1259.0516,10.8203); } else { SetPlayerPos(playerid, 1320.4910,1259.0516,10.8203); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /airportlv.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_chilliad(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -2310.3979,-1653.5586,483.6949); } else { SetPlayerPos(playerid, -2310.3979,-1653.5586,483.6949); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /chilliad.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_bigjump1(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 1067.7102, 792.3751, 967.3505); } else { SetPlayerPos(playerid, 1067.7102, 792.3751, 967.3505); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /bigjump1.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_airportls(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 1925.3805,-2247.5476,13.5469); } else { SetPlayerPos(playerid, 1925.3805,-2247.5476,13.5469); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /airportls.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_bounce(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 1697.9255,-2029.5854,144.8829); } else { SetPlayerPos(playerid, 1697.9255,-2029.5854,144.8829); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /bounce.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_airportvm(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 385.8709,2544.2598,16.5391); } else { SetPlayerPos(playerid, 385.8709,2544.2598,16.5391); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /airportvm.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_airportsf(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -1352.8398,-270.4604,17.5109); } else { SetPlayerPos(playerid, -1352.8398,-270.4604,17.5109); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /airportsf.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_bigjump2(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -1608.5573,-360.7846,383.7024); } else { SetPlayerPos(playerid, -1608.5573,-360.7846,383.7024); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /bigjump2.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_arch(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -2676.9385,217.7169,4.1797); } else { SetPlayerPos(playerid, -2676.9385,217.7169,4.1797); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /arch.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_ammonation(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 2156.7151,951.1920,10.8203); } else { SetPlayerPos(playerid, 2156.7151,951.1920,10.8203); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /ammonation.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_drag(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -2681.9216,1292.2723,55.2796); } else { SetPlayerPos(playerid, -2681.9216,1292.2723,55.2796); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /drag.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); GameTextForPlayer(playerid, "Use ~r~/countdown ~w~to start a countdown!", 5000, 5); return 1; } dcmd_duneride(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -1301.3494,2516.8472,87.1716); } else { SetPlayerPos(playerid, -1293.4573,2524.0381,87.4545); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /duneride.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_commands(playerid, params[]) { #pragma unused params { SendClientMessage(playerid, COLOR_RED, "------------------Commands--------------------"); SendClientMessage(playerid, COLOR_ORANGE, "STUNTS:/bigjump[1,2,3] /bowl /bounce"); SendClientMessage(playerid, COLOR_GREEN, "AIRPORTS:/aiportsf /airportlv /airportls /airportvm"); SendClientMessage(playerid, COLOR_RED, "RACES:/drag /racetrack"); SendClientMessage(playerid, COLOR_TAN, "TRAILS:/nrg1"); SendClientMessage(playerid, COLOR_GREY, "PLAYER:/login /logout /register /changepass /admins /stats /kill"); SendClientMessage(playerid, COLOR_BLUE, "OTHER:/home /ramp[on-off] /duneride /paint /ammonation /arch /chilliad"); SendClientMessage(playerid, COLOR_YELLOW, "INFO:/help /rules To report A bug or hacker!"); } return 1; } dcmd_help(playerid, params[]) { #pragma unused params { SendClientMessage(playerid, COLOR_RED, "------------------Help--------------------"); SendClientMessage(playerid, COLOR_GREEN, "For Teleports use :/commands"); SendClientMessage(playerid, COLOR_GREEN, "For The Rules use :/rules"); SendClientMessage(playerid, COLOR_GREEN, "If You See a Hacker Use /report"); } return 1; } dcmd_rules(playerid, params[]) { #pragma unused params { SendClientMessage(playerid, COLOR_RED, "--------------------Rules-------------------"); SendClientMessage(playerid, COLOR_RED, "-Don't hack ! (money hack, armour hack...)"); SendClientMessage(playerid, COLOR_RED, "-THIS IS NOT A DM SERVER!"); } return 1; } dcmd_parashute(playerid, params[]) { #pragma unused params { GivePlayerWeapon(playerid, 46, 1); } return 1; } dcmd_health(playerid, params[]) { #pragma unused params { SetPlayerHealth(playerid, 100); } return 1; } dcmd_nrg1(playerid, params[]) { #pragma unused params SetPlayerPos(playerid, 2698.5210,-1567.9019,44.7188); GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /nrg1.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_kill(playerid, params[]) { #pragma unused params { SetPlayerHealth(playerid, 0); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s Used /kill.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } dcmd_paint(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -1904.0685,271.1170,40.7054); } else { SetPlayerPos(playerid, -1904.0685,271.1170,40.7054); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /paint.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); return 1; } Kan Alsjeblieft iemand me helpen? mijn server loopt nu op een oudere versie omdat ik dit niet kan compile en ik heb dit nog bij #define staan zoals het hoort: #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 Gratz Rickie505 Bewerkt: 24 oktober 2009 door rickie505 Reageren
Big Boss Geplaatst: 24 oktober 2009 Rapport Geplaatst: 24 oktober 2009 OnPlayerPrivmsg is verwijderd in 0.3, dus dat zal je sowieso al moeten weghalen (junkbuster.inc). Verder zie ik niet echt een probleem, alles is zoals het hoort ... Reageren
Shotyoudie Geplaatst: 24 oktober 2009 Auteur Rapport Geplaatst: 24 oktober 2009 (bewerkt) OnPlayerPrivmsg is verwijderd in 0.3, dus dat zal je sowieso al moeten weghalen (junkbuster.inc). Verder zie ik niet echt een probleem, alles is zoals het hoort ... Dat stond er al eerder en als ik bigjump3 weghaal waar de errors om gaan krijg ik nog meer error's gratz rickie505 Bewerkt: 24 oktober 2009 door rickie505 Reageren
.Timothy Geplaatst: 24 oktober 2009 Rapport Geplaatst: 24 oktober 2009 dcmd_bigjump3(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 3002.8821, -2774.7166, 1741.1636); } else { SetPlayerPos(playerid, 3002.8821, -2774.7166, 1741.1636); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /bigjump3.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); } return 1; } Die accolade boven "return 1;" weghalen en het zou weer moeten werken, lijkt me.. Let overigens ook even op je indentation, daarmee kan je héél makkelijk zien waar (dit soort) fouten zitten in je structuur. Reageren
Rickyboy30 Geplaatst: 24 oktober 2009 Rapport Geplaatst: 24 oktober 2009 dcmd_bigjump3(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 3002.8821, -2774.7166, 1741.1636); } else { SetPlayerPos(playerid, 3002.8821, -2774.7166, 1741.1636); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /bigjump3.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); } return 1; } Die accolade boven "return 1;" weghalen en het zou weer moeten werken, lijkt me.. Let overigens ook even op je indentation, daarmee kan je héél makkelijk zien waar (dit soort) fouten zitten in je structuur. Yep het is volgens mij die } boven return 1; Reageren
Shotyoudie Geplaatst: 24 oktober 2009 Auteur Rapport Geplaatst: 24 oktober 2009 dcmd_bigjump3(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 3002.8821, -2774.7166, 1741.1636); } else { SetPlayerPos(playerid, 3002.8821, -2774.7166, 1741.1636); } GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /bigjump3.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); } return 1; } Die accolade boven "return 1;" weghalen en het zou weer moeten werken, lijkt me.. Let overigens ook even op je indentation, daarmee kan je héél makkelijk zien waar (dit soort) fouten zitten in je structuur. Yep het is volgens mij die } boven return 1; nee die had ik juist erbij gedaan want anders krijg ik dit: C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(216) : error 017: undefined symbol "dcmd_bigjump3" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(217) : error 017: undefined symbol "dcmd_bigjump3up" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(218) : error 017: undefined symbol "dcmd_home" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(219) : error 017: undefined symbol "dcmd_airportlv" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(220) : error 017: undefined symbol "dcmd_chilliad" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(221) : error 017: undefined symbol "dcmd_bigjump1" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(222) : error 017: undefined symbol "dcmd_airportls" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(223) : error 017: undefined symbol "dcmd_bounce" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(224) : error 017: undefined symbol "dcmd_airportvm" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(225) : error 017: undefined symbol "dcmd_airportsf" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(226) : error 017: undefined symbol "dcmd_bigjump2" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(227) : error 017: undefined symbol "dcmd_arch" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(228) : error 017: undefined symbol "dcmd_ammonation" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(229) : error 017: undefined symbol "dcmd_drag" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(230) : error 017: undefined symbol "dcmd_duneride" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(231) : error 017: undefined symbol "dcmd_commands" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(232) : error 017: undefined symbol "dcmd_help" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(233) : error 017: undefined symbol "dcmd_rules" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(234) : error 017: undefined symbol "dcmd_parashute" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(235) : error 017: undefined symbol "dcmd_health" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(236) : error 017: undefined symbol "dcmd_nrg1" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(237) : error 017: undefined symbol "dcmd_kill" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(238) : error 017: undefined symbol "dcmd_paint" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(347) : warning 217: loose indentation C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(347) : error 017: undefined symbol "dcmd_bigjump3" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(363) : warning 225: unreachable code C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(363) : error 017: undefined symbol "dcmd_bigjump3up" C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(377) : warning 225: unreachable code C:\Users\Rick\Desktop\SAMP SERVER0.3\gamemodes\huidig.pwn(377) : error 017: undefined symbol "dcmd_home" Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. Reageren
.Timothy Geplaatst: 24 oktober 2009 Rapport Geplaatst: 24 oktober 2009 Gezien al die "undifined symbols" en de enkele "loose indentations", zou ik eens je gamemode goed gaan uitlijnen door middel van tabs. Als ik nog een foutje zie, zal ik m'n bericht wel even bewerken (al vermoed ik dat er ergens weer zo'n accolade verkeerd staat ..) Edit: Meteen al gevonden: dcmd_racetrack(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 554.0462,-2840.1121,7.4550); } else { SetPlayerPos(playerid, 554.0462,-2840.1121,7.4550); { GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /racetrack.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); } return 1; } Weer een accolade teveel na SetPlayerPos. Slordigheidsfoutjes? Reageren
Shotyoudie Geplaatst: 24 oktober 2009 Auteur Rapport Geplaatst: 24 oktober 2009 (bewerkt) Gezien al die "undifined symbols" en de enkele "loose indentations", zou ik eens je gamemode goed gaan uitlijnen door middel van tabs. Als ik nog een foutje zie, zal ik m'n bericht wel even bewerken (al vermoed ik dat er ergens weer zo'n accolade verkeerd staat ..) Edit: Meteen al gevonden: dcmd_racetrack(playerid, params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 554.0462,-2840.1121,7.4550); } else { SetPlayerPos(playerid, 554.0462,-2840.1121,7.4550); { GetPlayerName(playerid, var0, 25); format(var1, 256, "*** %s has teleported to /racetrack.", var0); SendClientMessageToAll(COLOR_DARKGREEN, var1); } return 1; } Weer een accolade teveel na SetPlayerPos. Slordigheidsfoutjes? Ik heb deze Command's gemaakt met een Command maker en toen gewoon naar dcmd geconvert ik heb die accolade weg gehaalt en de accoladen achter setplayerpos van bigjump3 en nu werkt alles! Bedankt iedereen :DD Bewerkt: 24 oktober 2009 door rickie505 Reageren
.Timothy Geplaatst: 25 oktober 2009 Rapport Geplaatst: 25 oktober 2009 Ik heb deze Command's gemaakt met een Command maker en toen gewoon naar dcmd geconvertGeen enkel probleem om je te helpen, maar hierover wil ik toch nog wel wat kwijt: maak ze zelf. Ze kunnen nog zo handig en makkelijk zijn en besparen je werk, maar door deze dingen kun je te gehaast gaan werken. Daardoor maak je dus dit soort slordigheidfoutjes en die kunnen je dan juist weer je tijd kosten. Kopiëren-plakken is dan beter Reageren
Crusher!! Geplaatst: 25 oktober 2009 Rapport Geplaatst: 25 oktober 2009 (bewerkt) Luitjes jullie vergeten iets #define dcmd(%1,%2,%3) if( (strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd2_%1(playerid, ""))) || (((%3)[(%2) + 1] == 32) && (dcmd2_%1(playerid, (%3)[(%2) + 2]))))) return 1; Bewerkt: 25 oktober 2009 door Crusher!! Reageren
Recommended Posts
Een reactie plaatsen
Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.