Beiträge von Ralf

    Hallo Community, ich habe folgendes Problem:
    Ich möchte dass wenn man den Befehl eingibt, sich einen Job auswählen kann (Ist im Interior!) Nun nachdem man sich den Job ausgewählt hat kommt ein Checkpoint, der aber nicht mal im geringsten an der Stelle ist wo er sein soll, sondern irgendwo anders auf der Map z.B. im Meer,etc.
    Nun hoffe ich das Ihr mir helfen könnt!
    Danke im Voraus!
    if(listitem == 0)
    {
    if(sSpieler[playerid][Nebenjob]== 1) return SendClientMessage(playerid,Rot,"Du bist bereits in diesem Job!");
    if(IstSpielerInNebenjob(playerid,2) && 3 && 4 && 5) return SendClientMessage(playerid,Rot,"Du hast bereits einen Job! Du musst deinen jetzigen Job zuerst mit /kuendigen kündigen!");
    sSpieler[playerid][Nebenjob]=1;
    SetPlayerCheckpoint(playerid,5,766.1917,-1361.2567,13.5263);
    SendClientMessage(playerid,Gruen,"Herzlichen Glückwunsch zu deinem Neuen Job! Es wurde ein Marker gesetzt!");
    return 1;
    }



    MfG Ralf

    Wie mache ich das , wenn jemand den abbrechen Buttion klickt , dass es den jenigen vom Auto removed (Dialogtechnisch)


    Hab den Dialog so


    if(dialogid == DIALOG_STRASSENREINIGER)
    {
    if(response)
    {


    switch(listitem)
    {
    case 0:
    {
    if(Strecke1[playerid][pmi_bAktiv])return SendClientMessage(playerid,Rot,"Du bist schon auf Tour!");
    new vehicleid=GetPlayerVehicleID(playerid),model=GetVehicleModel(vehicleid);
    if(model == 574)
    {
    Strecke1[playerid][pmi_Checkpoint]=0;
    Strecke1[playerid][pmi_bAktiv]=true;
    SendClientMessage(playerid,Gruen,"Säubere nun die Straße!(Fahre die Checkpoints ab!)");
    SetPlayerCheckpoint(playerid,Strecke1_Stationen[0][M_fX],Strecke1_Stationen[0][M_fY],Strecke1_Stationen[0][M_fZ],Strecke1_Stationen[0][M_fRad]);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist nicht in der Kehrmaschine!");
    }
    }
    case 1:
    {
    if(Strecke2[playerid][pmi_bAktiv])return SendClientMessage(playerid,Rot,"Du bist schon auf Tour!");
    new vehicleid=GetPlayerVehicleID(playerid),model=GetVehicleModel(vehicleid);
    if(model == 574)
    {
    Strecke2[playerid][pmi_Checkpoint]=0;
    Strecke2[playerid][pmi_bAktiv]=true;
    SendClientMessage(playerid,Gruen,"Säubere nun die Straße!(Fahre die Checkpoints ab!)");
    SetPlayerCheckpoint(playerid,Strecke2_Stationen[0][M_fX],Strecke2_Stationen[0][M_fY],Strecke2_Stationen[0][M_fZ],Strecke2_Stationen[0][M_fRad]);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist nicht in der Kehrmaschine!");
    }
    }


    }
    return 1;
    }
    }

    Jetzt hab ich s so



    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7026) : error 035: argument type mismatch (argument 2)
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7035) : error 035: argument type mismatch (argument 2)
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7036) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7044) : error 035: argument type mismatch (argument 2)
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7045) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7053) : error 035: argument type mismatch (argument 2)
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7054) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7062) : error 035: argument type mismatch (argument 2)
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7063) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7071) : error 035: argument type mismatch (argument 2)
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7072) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7080) : error 035: argument type mismatch (argument 2)
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7081) : warning 215: expression has no effect
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    7 Errors.


    if(dialogid == Supcar_Dialog)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(556,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(451,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 2)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(568,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 3)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(495,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 4)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(434,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 5)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(487,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 6)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(519,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    }

    Hab die Errors trotz [playerid] noch -.-


    Habs jetzt so if(dialogid == Supcar_Dialog)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar; //7023
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(556,x,y,z,a,0,1); //7025
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(451,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 2)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(568,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 3)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(495,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 4)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(434,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 5)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(487,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 6)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar[playerid]=AddStaticVehicle(519,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    }


    Und Die Errors
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7023) : warning 219: local variable "Supcar" shadows a variable at a preceding level
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7025) : error 028: invalid subscript (not an array or too many subscripts): "Supcar"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7025) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7025) : error 001: expected token: ";", but found "]"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7025) : error 029: invalid expression, assumed zero
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7025) : 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.

    ICh weiß , dass das hier in dem Forum nicht gerade optimal ist und daher ist glaube ich ist ein Scripten über Tv besser ^^


    TS:84.142.116.212
    TV Daten gibts mündlich.


    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7023) : warning 219: local variable "Supcar" shadows a variable at a preceding level
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : error 028: invalid subscript (not an array or too many subscripts): "Supcar"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : error 001: expected token: ";", but found "]"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : error 029: invalid expression, assumed zero
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : 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.




    Hier sind die Errors:


    if(dialogid == Supcar_Dialog)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar; // Zeile 7023
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(556,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] = 1;
    }
    if(listitem == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(451,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 2)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(568,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 3)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(495,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 4)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(434,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 5)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(487,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 6)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(519,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    }

    Hab das ganze jetzt so macht noch Errors
    new Supcar[MAX_PLAYERS];


    ocmd:supcar(playerid,params[])
    {
    if(!IstSpielerAdmin(playerid,1)) return SendClientMessage(playerid,Rot,"Du bist kein Admin");
    if(Supcar[playerid]== 1)
    {
    DestroyVehicle(Supcar[playerid];
    }
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst dir kein Auto spawnen, solange du in einem Auto sitzt!");
    ShowPlayerDialog(playerid,Supcar_Dialog,DIALOG_STYLE_LIST,"Supcars","Monster Truck\nTourismo\nBandito\nSandking\nHotknife\nMaverick\nShamal","Spawnen","Abbrechen");
    return 1;
    }


    if(dialogid == Supcar_Dialog)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar; //7023
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(556,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] = 1;
    }
    if(listitem == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(451,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 2)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(568,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 3)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(495,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 4)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(434,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 5)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(487,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 6)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(519,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    }
    }


    Errors:
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(4697) : error 001: expected token: ",", but found ";"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7023) : warning 219: local variable "Supcar" shadows a variable at a preceding level
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : error 028: invalid subscript (not an array or too many subscripts): "Supcar"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : error 001: expected token: ";", but found "]"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : error 029: invalid expression, assumed zero
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(7027) : fatal error 107: too many error messages on one line


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



    5 Errors.


    Ich habs jetzt so :
    Hat aber einen Warning:

    C:\Users\Ralf\Desktop\Samp
    o.3x Server\gamemodes\grsa-backup.pwn(4741) : warning 209: function "ocmd_abkuppeln" should return a value
    ocmd:abkuppeln(playerid,params[])
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(GetVehicleModel(514)&&GetVehicleModel(515))
    {
    new Vehicle;
    Vehicle=GetPlayerVehicleID(playerid);
    DetachTrailerFromVehicle(Vehicle);
    SendClientMessage(playerid,Gruen,"Du hast den Anhänger abgekoppelt.");
    return 1;
    }
    return 1;
    }

    Bin mir ned ganz sicher aber das mit der Fareb sollte mit dem gehn


    public OnPlayerConnect
    {
    SetPlayerColour(playerid,Weiss);
    return 1;
    }

    Geht i-wie nicht mehr ^^ Und wie kann ich machen , dass es nur geht wenn er in einem Lkw sitzt und nen Anhänger dran hat?



    ocmd:Abkuppeln(playerid,params[])
    {
    new Vehicle;
    Vehicle=GetPlayerVehicleID(playerid);
    DetachTrailerFromVehicle(Vehicle);
    SendClientMessage(playerid,Gruen,"Du hast den Anhänger abgekoppelt.");
    return 1;
    }

    Hi leute ich hab einfach mal nen Abkoppel Befehl gemacht - so aus dem Bauch heraus :D Und er funktioniert nicht und möchte gern wissen was ich vergessen oder falsch gemacht habe.


    ocmd:Abkuppeln(playerid,params[])
    {
    new Vehicle;
    GetPlayerVehicleID(playerid);
    DetachTrailerFromVehicle(Vehicle);
    SendClientMessage(playerid,Gruen,"Du hast den Anhänger abgekoppelt.");
    }

    Mein Samp crasht nachdem ich mein Pw eingegeben habe mit folgender meldung


    SA-MP 0.3x-R1-2
    Exception At Address: 0x004D46AE
    Base: 0x04860000


    Registers:
    EAX: 0x05147700 EBX: 0x0194B200 ECX: 0xFFFFFFFD EDX: 0x00000000
    ESI: 0x00000938 EDI: 0x00000001 EBP: 0x00000003 ESP: 0x0028F774
    EFLAGS: 0x00210246


    Stack:
    +0000: 0x00000000 0x0A756B60 0x0B8E0010 0x0194B200
    +0010: 0x0028F798 0x00000000 0x447A0000 0x00000000
    +0020: 0x00000000 0x0068581A 0x0B9B8F70 0x00000076
    +0030: 0x00000003 0x447A0000 0x0B8E0010 0x00000004
    +0040: 0x0194B201 0x006818BB 0x0A756B60 0x00000002
    +0050: 0x00000000 0x00000000 0x0B8E000C 0x0194B201
    +0060: 0x00601761 0x0194B201 0x0CFC7150 0x0A756B60
    +0070: 0x0028F82C 0x00000000 0xFFFFFFFF 0x0B8AAF08
    +0080: 0x0B8E000C 0x0028F964 0x0083E826 0xFFFFFFFF
    +0090: 0x005E4147 0x00000001 0x0CFC7150 0x0CFA1810
    +00A0: 0x048C27FF 0x44A3C345 0xC4AD1895 0x415C3AFB
    +00B0: 0x00000000 0x0A756B60 0x0028FA64 0x04B66098
    +00C0: 0x44A3C345 0xC4AD1895 0x415C3AFB 0x0028F978
    +00D0: 0x44A3C345 0xC4AD1895 0x415C3AFB 0x00000068
    +00E0: 0x00000068 0x00000060 0x0028F978 0x0028F900
    +00F0: 0x00000000 0x0028F984 0x00000000 0x00000390
    +0100: 0x00000000 0x00000052 0x00000996 0x00000050
    +0110: 0x00000000 0x0159F5EC 0x00000002 0x00000000
    +0120: 0x00000050 0x00000052 0x00C4D958 0x00000010
    +0130: 0x06F1632C 0x00000004 0x00000000 0x00805769
    +0140: 0x015A0D70 0x00C9BC50 0x00000052 0x00000041
    +0150: 0x0CFD6568 0x01940000 0x0CFD6FE0 0x00000000
    +0160: 0x00000052 0x00000000 0x00000000 0x0000010E
    +0170: 0x0028F9D0 0x00000041 0x01940000 0x0CFD6568
    +0180: 0x0028F9D0 0x77903CA4 0x77903CD3 0x77D20F7C
    +0190: 0x00000040 0x0194038C 0x01940000 0x01940150
    +01A0: 0x00000000 0x01940150 0x0CFC6FE0 0x0028FA64
    +01B0: 0x0CFC8901 0x0028FAC0 0x0492980B 0xFFFFFFFF
    +01C0: 0x04895030 0x04895056 0x01940000 0x0CFC89A8
    +01D0: 0x00000000 0x0028F994 0x0028FA64 0x0028FAAC
    +01E0: 0x0028FAAC 0x0CFC7150 0x0028FA64 0x00286F00
    +01F0: 0x0028FAC0 0x04ADC98D 0x00000000 0x04895030
    +0200: 0x0028FAA8 0x44A3C345 0xC4AD1895 0x415C3AFB
    +0210: 0x04894FE9 0x0CF6DA12 0x0CF6DA10 0x00000000
    +0220: 0x00000080 0x00000080 0x0000007C 0x0194B288
    +0230: 0x0CFD3600 0x01940150 0x0043CD51 0x01940000
    +0240: 0x01940150 0x0028F900 0xBC75CF83 0x01940150
    +0250: 0x02000002 0x00000080 0x21000021 0x0000000B
    +0260: 0x0F00010E 0x00000021 0x00000003 0x0CFD6778
    +0270: 0x0000000B 0x00000021 0x00000200 0x7F00017E


    SCM Op: 0x248, lDbg: 0 LastRendObj: 0


    Game Version: US 1.0


    State Information: Ped Context: 0
    P0 (0,0)



    Ich habe keine Mods!

    Hab das jetzt so gemacht macht aber Errors :


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    if(Supcar[playerid]==1)
    {
    DestroyVehicle(Supcar[playerid]); // Die Errors sind hier
    }
    return 1;
    }



    if(dialogid == Supcar_Dialog)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(556,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid ]== 1;
    }
    if(listitem == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(451,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 2)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(568,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 3)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(495,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    if(listitem == 4)
    {
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du kannst kein Sup-Car spawnen, solange du in einem Auto sitzt!");
    new Float:x,Float:y,Float:z,Float:a,Supcar;
    GetPlayerPos(playerid,x,y,z);
    Supcar=AddStaticVehicle(434,x,y,z,a,0,1);
    PutPlayerInVehicle(playerid,Supcar,0);
    Supcar[playerid] == 1;
    }
    }



    Errors:
    :\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(5705) : error 017: undefined symbol "Supcar"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(5705) : warning 215: expression has no effect
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(5705) : error 001: expected token: ";", but found "]"
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(5705) : error 029: invalid expression, assumed zero
    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\grsa-backup.pwn(5705) : 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.