Beiträge von Phantom.

    Kills und Deaths Bleiben immer auf 0
    new Text:StatsTextdraw[MAX_PLAYERS];


    StatsTextdraw[playerid] = TextDrawCreate(2.000000, 424.000000, "-");
    TextDrawBackgroundColor(StatsTextdraw[playerid], 255);
    TextDrawFont(StatsTextdraw[playerid], 2);
    TextDrawLetterSize(StatsTextdraw[playerid], 0.35,1.4);
    TextDrawColor(StatsTextdraw[playerid], -1);
    TextDrawSetOutline(StatsTextdraw[playerid], 1);
    TextDrawSetProportional(StatsTextdraw[playerid], 1);


    SetTimer("StatsTimer",1000,1);


    public StatsTimer()
    {
    new str[128];
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    new str2[128];
    format(str2, sizeof(str2), "Kills:%d Tode:%d",GetPVarInt(i,"Kills"),GetPVarInt(i,"Deaths"));
    TextDrawSetString(StatsTextdraw,str2);
    TextDrawShowForPlayer(i,StatsTextdraw);
    SpielerSpeichern(i);
    }
    retrun1 ;
    }

    Hi Liebe User


    Ich habe mal ne Frage ich habe ja ein /vehicle befehl
    und ich wollte machen immer wen ich ein neuen auto gespawnt habe soll der Auto den ich stehen gelassen habe verschwinden also Remove
    könnt ihr mir helfen wie ich anfangen soll


    MFG Phantom.

    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Phantom.pwn(72) : error 076: syntax error in the expression, or invalid function call
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Phantom.pwn(72) : error 017: undefined symbol "modelid"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Phantom.pwn(72) : error 017: undefined symbol "x"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Phantom.pwn(72) : fatal error 107: too many error messages on one line



    public OnGameModeExit()
    {
    new Float:x, Float:y, Float:z, modelid;
    dcar = CreateVehicle(modelid x, y, z, 1);
    return 1;
    }

    Morgen liebe User
    ich habe ein Timer erstellt, wenn der Spieler aus den auto aussteigt hat der 5 Sekunden zeit um einzusteigen
    wen der in 5 Sekunden nicht einsteigt soll das Auto gelöscht werden



    Mein Problem : wen ich aussteige wird es die Reckt gelöscht


    ongamemodint
    SetTimer("dcar", 5000, true);



    onplayerenterveh..
    KillTimer(dcar);



    onplayerexitveh..
    dcar = DestroyVehicle(vehicleid);

    Hi habe ein Problem kannst du mir helfen /v menu


    ich habe ein Problem mit /V menu alle gehen bis auf Airplane da geht einfach kein 2tes Dialog auf wo die namen der
    Flugzeuge kannst mir pls Helfen es gibt keine Warrnig oder error



    #define Dialog_Bikes 1634
    #define Dialog_Cars 364
    #define Dialog_Airplanes 8456
    #define Dialog_Heli 354#define DIALOG_V 6


    if (strcmp("/v", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_V,DIALOG_STYLE_LIST,"{FFFFFF}Vehicle Menu","{FF0000}Bike\n{00FF40}Car\n{FF0000}Flugzeuge\n{00FF40}Helicopter","Ok","Beenden");
    return 1;
    }


    if(dialogid == DIALOG_V)
    {
    if(response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,Dialog_Bikes,DIALOG_STYLE_LIST,"Bike's","NRG-500\nSanchez\nBF-400\nPCJ-600\nFCR-900\nFreeway\nQuad","Spawn","Beenden");
    return 1;
    }
    if(listitem == 1)
    {
    ShowPlayerDialog(playerid,Dialog_Cars,DIALOG_STYLE_LIST,"Car's","Hotring Racer\nInfernus\nBullet\nCheetah\nBanshee\nTurismo\nSuper GT\nSultan\nJester\nZR-350","Spawn","Beenden");
    return 1;
    }


    if(listitem == 3)
    {
    ShowPlayerDialog(playerid,Dialog_Heli,DIALOG_STYLE_LIST,"Helicopter's","Maverick\nSparrow\nRaindance\nLeviathan\nCargobob","Spawn","Beenden");
    return 1;
    }


    if(listitem == 4)
    {
    ShowPlayerDialog(playerid,Dialog_Airplanes,DIALOG_STYLE_LIST,"Airplane's","AT-400\nAndromada\nNevada\nShamal\nDodo\nStuntplane\nCropduster\nSkimmer","Spawn","Beenden");
    return 1;
    }
    }
    }


    if(dialogid == Dialog_Bikes)
    {
    if(response)
    {
    if(listitem == 0)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(522,x+2,y+2,z,0,0,131,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 1)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(468,x+2,y+2,z,0,0,135,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 2)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(581,x+2,y+2,z,0,0,101,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 3)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(461,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 4)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(521,x+2,y+2,z,0,0,151,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 5)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(463,x+2,y+2,z,0,0,161,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 6)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(471,x+2,y+2,z,0,0,141,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    }
    }


    if(dialogid == Dialog_Cars)
    {
    if(response)
    {
    if(listitem == 0)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(502,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 1)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(411,x+2,y+2,z,0,0,151,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 2)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(541,x+2,y+2,z,0,0,1,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 3)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(415,x+2,y+2,z,0,0,156,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 4)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(429,x+2,y+2,z,0,0,163,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 5)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(451,x+2,y+2,z,0,0,168,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 6)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(506,x+2,y+2,z,0,0,168,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 7)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(559,x+2,y+2,z,0,0,122,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 8)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(447,x+2,y+2,z,0,0,135,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    }
    }

    if(dialogid == Dialog_Airplanes)
    {
    if(response)
    {
    if(listitem == 0)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(577,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 1)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(592,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 2)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(553,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 3)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(519,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 4)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(593,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 5)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(513,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 6)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(512,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 7)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(560,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    }
    }

    if(dialogid == Dialog_Heli)
    {
    if(response)
    {
    if(listitem == 0)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(487,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 1)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(469,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 2)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(563,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 3)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(417,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 4)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(548,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    }
    }




    währe sehr nett wen du mir helfen kannst


    MFG
    Phantom

    Ich habe das jetzt so



    if(dialogid == DIALOG_V)
    {
    if(response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_V,DIALOG_STYLE_LIST,"Bike's","NRG-500\nSanchez\nBF-400\nPCJ-600\nFCR-900\nFreeway\nQuad","Spawn","Beenden");
    return 1;
    }
    if(listitem == 1)
    {
    ShowPlayerDialog(playerid,DIALOG_V,DIALOG_STYLE_LIST,"Car's","Hotring Racer\nInfernus\nBullet\nCheetah\nBanshee\nTurismo\nSuper GT\nSultan\nJester\nZR-350","Spawn","Beenden");
    return 1;
    }
    if(listitem == 3)
    {
    ShowPlayerDialog(playerid,DIALOG_V,DIALOG_STYLE_LIST,"Airplane's","AT-400\nAndromada\nNevada\nShamal\nDodo\nStuntplane\nCropduster\nSkimmer","Spawn","Beenden");
    return 1;
    }
    if(listitem == 4)
    {
    ShowPlayerDialog(playerid,DIALOG_V,DIALOG_STYLE_LIST,"Helicopter's","Maverick\nSparrow\nRaindance\nLeviathan\nCargobob","Spawn","Beenden");
    return 1;
    }
    }

    Abend
    ich habe ein Problem ich komme nicht weiter


    Also ich habe ein /v befehl wen ich den ausführe kommt dann ein DIALOG liste und in der liste steht


    Bike's


    Car's
    Airplane's
    Helicopter's




    und wen ich auf gehe kommt eine 2te Dialog list mit


    Sanchez
    NRG-500
    usw...


    und wollte mall fragen wo soll ich den, CarSpawn Code den eingeben


    oben
    #define DIALOG_V


    Befehl
    if (strcmp("/v", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_V,DIALOG_STYLE_LIST,"{FFFFFF}Vehicle Menu","Bike's\nCar's\nAirplane's\nHelicopter's","Ok","Beenden");
    return 1;
    }


    Dialogrespos
    if(dialogid == DIALOG_V)
    {
    if(response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_LIST,"Bike's","NRG-500\nSanchez\nBF-400\nPCJ-600\nFCR-900\nFreeway\nQuad","Spawn","Beenden");



    bin hier Hängen geblieben


    ich hoffe ihr könnt mir helfen