Suche /veh systen FÜR STUNTSERVER

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • hallo allerseits,
    wie der titel schon sagt, brauch in ein /Veh command, das auch in einem Stuntgamemode funktioniert, das /veh system aus dem Godfather funktionert nicht, 12 errors.
    danke im vorraus!
    mfg fluppy

    526C4Hj.png Mit freundlichen Grüßen,
    Noneatme

  • Hier versuch mal das sollte eig gehn:



    if(strcmp( cmd, "/veh", true ) == 0 )
    {
    new Float:X, Float:Y, Float:Z;
    new tmp6[256];
    new created_vehicle_id;
    tmp6 = strtok( cmdtext, idx );


    GetPlayerPos( playerid, X, Y, Z );
    created_vehicle_id = CreateVehicle( strval(tmp6), X+2, Y+2, Z, 0, -1, -1, -1 );
    return 1;
    }



    Is aus meinem Selfmade sollte eig. gehn

  • if(strcmp( cmd, "/car", true ) == 0 )
    {
    new Float:X, Float:Y, Float:Z;
    new tmp6[256];
    new created_vehicle_id;
    tmp6 = strtok( cmdtext, idx );


    GetPlayerPos( playerid, X, Y, Z );
    created_vehicle_id = CreateVehicle( strval(tmp6), X+2, Y+2, Z, 0, -1, -1, -1 );
    return 1;
    }


    Warum sollte man da n aDmin level hin machen ?? is n ganz normaler CMd für alle ?!

  • if(strcmp(cmd, "/veh", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /veh [carid] [color1] [color2]");
    return 1;
    }
    new car;
    car = strval(tmp);
    if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GRAD2, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /veh [carid] [color1] [color2]");
    return 1;
    }
    new color1;
    color1 = strval(tmp);
    if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GRAD2, " Color Number can't be below 0 or above 126 !"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /veh [carid] [color1] [color2]");
    return 1;
    }
    new color2;
    color2 = strval(tmp);
    if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GRAD2, " Color Number can't be below 0 or above 126 !"); return 1; }
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    CreateVehicle(car, X,Y,Z, 0.0, color1, color2, -1);
    }
    return 1;
    }


    Vom GodFather... Paar sachen entfernt und fertig :thumbdown: So Schwer ist das ja nicht oder.

  • @ alex
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(194) : error 004: function "WetterTimer" is not implemented
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(196) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(197) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(208) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(219) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(227) : warning 213: tag mismatch
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(227) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(228) : warning 213: tag mismatch
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(228) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(229) : warning 213: tag mismatch
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(229) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(230) : warning 213: tag mismatch
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(230) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(231) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(309) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(454) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(469) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(470) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(471) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(485) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(489) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(490) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(500) : warning 235: public function lacks forward declaration (symbol "SafeResetPlayerWeapons")
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(513) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(524) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(541) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(549) : error 017: undefined symbol "cmd"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(553) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(553) : error 017: undefined symbol "strtok"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(554) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(557) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(560) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(561) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(562) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(562) : error 017: undefined symbol "strtok"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(563) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(566) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(569) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(570) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(571) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(571) : error 017: undefined symbol "strtok"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(572) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(575) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(578) : error 017: undefined symbol "tmp"
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(579) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(584) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(584) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(588) : warning 225: unreachable code
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(588) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(592) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(594) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(598) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(602) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(611) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(619) : error 079: inconsistent return types (array & non-array)
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(622) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(625) : warning 217: loose indentation
    C:\Documents and Settings\Administrator\Desktop\neuer testserver\gamemodes\MULTISTUNT.pwn(625) : error 079: inconsistent return types (array & non-array)


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.


    das meint ich
    edit:

    Zitat

    Der Beitrag war eben noch anders^^ (die frage)

    Schau mal an meinen ersten beitrag, steht da unter etwa "Bereits 1-mal editiert, zuletz von fluppy...."?

    526C4Hj.png Mit freundlichen Grüßen,
    Noneatme

    Einmal editiert, zuletzt von Noneatme ()