Beiträge von TimeLine

    TextDrawShowForPlayer zu PlayerTextDrawShow


    Lg.

    die warnings sind jz weg da kommt nurnoch error


    C:\Users\*******\Desktop\test\test.pwn(18394) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18395) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18396) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18397) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18398) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18399) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18400) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18401) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18402) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18403) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18404) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18405) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18406) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18408) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18409) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18410) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18411) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18412) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18413) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18414) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18415) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18416) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18417) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18419) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18420) : error 017: undefined symbol "playerid"
    C:\Users\*******\Desktop\test\test.pwn(18421) : error 017: undefined symbol "playerid"



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




    26 Errors.

    hallo ich bekomme immer wieder diese error´s hoffe wir könnt mir helfen



    Rang[playerid] = CreatePlayerTextDraw(playerid, 483.777740, 159.138031, "Frations_Rang:");
    PlayerTextDrawLetterSize(playerid, Rang[playerid], 0.400000, 1.600000);
    PlayerTextDrawTextSize(playerid, Rang[playerid], 671.000000, 0.000000);
    PlayerTextDrawAlignment(playerid, Rang[playerid], 1);
    PlayerTextDrawColor(playerid, Rang[playerid], -1);
    PlayerTextDrawUseBox(playerid, Rang[playerid], 1);
    PlayerTextDrawBoxColor(playerid, Rang[playerid], 255);
    PlayerTextDrawSetShadow(playerid, Rang[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Rang[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Rang[playerid], 255);
    PlayerTextDrawFont(playerid, Rang[playerid], 3);
    PlayerTextDrawSetProportional(playerid, Rang[playerid], 1);
    PlayerTextDrawSetShadow(playerid, Rang[playerid], 0);



    Rang1[playerid] = CreatePlayerTextDraw(playerid, 581.555603, 159.635589, "Bandit");
    PlayerTextDrawLetterSize(playerid, Rang1[playerid], 0.400000, 1.600000);
    PlayerTextDrawAlignment(playerid, Rang1[playerid], 1);
    PlayerTextDrawColor(playerid, Rang1[playerid], 16777215);
    PlayerTextDrawSetShadow(playerid, Rang1[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Rang1[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Rang1[playerid], 255);
    PlayerTextDrawFont(playerid, Rang1[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Rang1[playerid], 1);
    PlayerTextDrawSetShadow(playerid, Rang1[playerid], 0);



    Rang2[playerid] = CreatePlayerTextDraw(playerid, 483.777709, 141.715545, "Fraktion:");
    PlayerTextDrawLetterSize(playerid, Rang2[playerid], 0.400000, 1.600000);
    PlayerTextDrawTextSize(playerid, Rang2[playerid], 639.000000, 0.000000);
    PlayerTextDrawAlignment(playerid, Rang2[playerid], 1);
    PlayerTextDrawColor(playerid, Rang2[playerid], -1);
    PlayerTextDrawUseBox(playerid, Rang2[playerid], 1);
    PlayerTextDrawBoxColor(playerid, Rang2[playerid], 255);
    PlayerTextDrawSetShadow(playerid, Rang2[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Rang2[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Rang2[playerid], 255);
    PlayerTextDrawFont(playerid, Rang2[playerid], 3);
    PlayerTextDrawSetProportional(playerid, Rang2[playerid], 1);
    PlayerTextDrawSetShadow(playerid, Rang2[playerid], 0);



    Rang3[playerid] = CreatePlayerTextDraw(playerid, 549.110839, 142.213256, "LSPD");
    PlayerTextDrawLetterSize(playerid, Rang3[playerid], 0.400000, 1.600000);
    PlayerTextDrawAlignment(playerid, Rang3[playerid], 1);
    PlayerTextDrawColor(playerid, Rang3[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Rang3[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Rang3[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Rang3[playerid], 255);
    PlayerTextDrawFont(playerid, Rang3[playerid], 2);
    PlayerTextDrawSetProportional(playerid, Rang3[playerid], 1);
    PlayerTextDrawSetShadow(playerid, Rang3[playerid], 0);



    Rang4[playerid] = CreatePlayerTextDraw(playerid, 483.722534, 176.464462, "Supporter_Rang:");
    PlayerTextDrawLetterSize(playerid, Rang4[playerid], 0.400000, 1.600000);
    PlayerTextDrawTextSize(playerid, Rang4[playerid], 639.999023, 0.000000);
    PlayerTextDrawAlignment(playerid, Rang4[playerid], 1);
    PlayerTextDrawColor(playerid, Rang4[playerid], -1);
    PlayerTextDrawUseBox(playerid, Rang4[playerid], 1);
    PlayerTextDrawBoxColor(playerid, Rang4[playerid], 255);
    PlayerTextDrawSetShadow(playerid, Rang4[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Rang4[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Rang4[playerid], 255);
    PlayerTextDrawFont(playerid, Rang4[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Rang4[playerid], 1);
    PlayerTextDrawSetShadow(playerid, Rang4[playerid], 0);



    Rang5[playerid] = CreatePlayerTextDraw(playerid, 560.666809, 176.062240, "Probe-Supporter");
    PlayerTextDrawLetterSize(playerid, Rang5[playerid], 0.400000, 1.600000);
    PlayerTextDrawAlignment(playerid, Rang5[playerid], 1);
    PlayerTextDrawColor(playerid, Rang5[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Rang5[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Rang5[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Rang5[playerid], 255);
    PlayerTextDrawFont(playerid, Rang5[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Rang5[playerid], 1);
    PlayerTextDrawSetShadow(playerid, Rang5[playerid], 0);



    Rang6[playerid] = CreatePlayerTextDraw(playerid, 483.821929, 192.488967, "Admin_Rang:");
    PlayerTextDrawLetterSize(playerid, Rang6[playerid], 0.400000, 1.600000);
    PlayerTextDrawTextSize(playerid, Rang6[playerid], 671.000000, 0.000000);
    PlayerTextDrawAlignment(playerid, Rang6[playerid], 1);
    PlayerTextDrawColor(playerid, Rang6[playerid], -1);
    PlayerTextDrawUseBox(playerid, Rang6[playerid], 1);
    PlayerTextDrawBoxColor(playerid, Rang6[playerid], 255);
    PlayerTextDrawSetShadow(playerid, Rang6[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Rang6[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Rang6[playerid], 255);
    PlayerTextDrawFont(playerid, Rang6[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Rang6[playerid], 1);
    PlayerTextDrawSetShadow(playerid, Rang6[playerid], 0);



    Rang7[playerid] = CreatePlayerTextDraw(playerid, 545.555480, 193.982269, "Super-Moderator");
    PlayerTextDrawLetterSize(playerid, Rang7[playerid], 0.400000, 1.600000);
    PlayerTextDrawAlignment(playerid, Rang7[playerid], 1);
    PlayerTextDrawColor(playerid, Rang7[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Rang7[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Rang7[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Rang7[playerid], 255);
    PlayerTextDrawFont(playerid, Rang7[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Rang7[playerid], 1);
    PlayerTextDrawSetShadow(playerid, Rang7[playerid], 0);

    hier kommen die warnings


    TextDrawShowForPlayer(playerid, Rang[playerid]);
    TextDrawShowForPlayer(playerid, Rang1[playerid]);
    TextDrawShowForPlayer(playerid, Rang2[playerid]);
    TextDrawShowForPlayer(playerid, Rang3[playerid]);
    TextDrawShowForPlayer(playerid, Rang4[playerid]);
    TextDrawShowForPlayer(playerid, Rang5[playerid]);
    TextDrawShowForPlayer(playerid, Rang6[playerid]);
    TextDrawShowForPlayer(playerid, Rang7[playerid]);

    In einer for Schleife kann man für gewöhnlich schon noch weitere Schleifen schreiben.
    Ich finde aber die Art wie du die for Schleife geschrieben hast etwas "eigen" ich würd das lieber so machen:

    Code
    for(new vid = 0; vid < MAX_VEHICLES; vid++)

    aber das müsste ja eigentlich so auch funktionieren wie du das hast. Also im Zweifelsfalle kannst ja mal meine Schleife probieren, falls es nichts bringt empfehle ich dir alle paar Zeilen irgend eine Ausgabe rein zu machen (print, SendClientMessage, ..) und dann zu checken welche Ausgabe du als letztes noch von dem Befehl erhältst bevor sich der Server aufhängt.

    Geht immer noch nicht der server bleibt aber er hängt sich auf -.-

    Hey ,
    ich brauche hierbei hilfe ich finde den fehler nicht wenn man den befehl ausführt hängt sich der server auf
    ich bitte um hilfe



    if(strcmp(cmd, "/parkamt", true) == 0)
    {
    if(SpielerInfo[playerid][sMember] == 18)
    {
    tmp = strtok(cmdtext,idx);
    new Float:bX,Float:bY,Float:bZ;
    GetPlayerPos(playerid,bX,bY,bZ);
    new Float:aX,Float:aY,Float:aZ;
    if(!strlen(tmp)) return SendClientMessage(playerid,0xFF0000FF,"==[parkamt]== /parkamt [name] >>> [Anbauen oder Abbauen]");
    if(strcmp(tmp,"Anbauen",true) == 0)
    {
    for(new vid;vid!=MAX_VEHICLES;vid++)
    {
    GetVehiclePos(vid,aX,aY,aZ);
    if((floatabs(bX-aX)<3.0)&&(floatabs(bY-aY)<3.0)&&(floatabs(bZ-aZ)<3.0)&&(vid!=GetPlayerVehicleID(playerid)))
    {
    if(!IsADtCar(vid))
    {
    new fc;while(fc<MAX_FRACTION_CARS){
    if(FractionCars[fc][fVehid] >= 400 && FractionCars[fc][fVehid] <= 611)
    {
    if(FractionCars[fc][fCarid] == vid)
    {
    FractionCars[fc][fparkamt] = 1;
    format(globquery, sizeof(globquery), "* %s baut eine parkamt an das Fahrzeug.", GetName(playerid));
    ProxDetector(30.0, playerid, globquery, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
    }
    }
    }
    }
    else
    {
    //Wird gemacht
    new theOwner = GetOwner(vid);
    new xid;
    for(new x;x!=MaxVeh;x++)
    {
    if(Dtc_PlayerHaveCar[playerid][x])
    {
    if(vid == PlayerCar[theOwner][x][CarId])
    {
    xid = x;
    break;
    }
    }
    }
    PlayerCar[theOwner][xid][Kralle] = 1;
    format(globquery,256,"UPDATE `carsystem` SET `Kralle`='1' WHERE `CarOwner`='%s_%d'",GetName(playerid),xid);
    mysql_query(globquery);
    format(globquery, sizeof(globquery), "* %s baut eine parkamt an das Fahrzeug.", GetName(playerid));
    ProxDetector(30.0, playerid, globquery, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
    }
    }
    }
    }
    else if(strcmp(tmp,"Abbauen",true) == 0)
    {
    for(new vid;vid!=MAX_VEHICLES;vid++)
    {
    GetVehiclePos(vid,aX,aY,aZ);
    if ((floatabs(bX-aX)<3.0)&&(floatabs(bY-aY)<3.0)&&(floatabs(bZ-aZ)<3.0)&&(vid!=GetPlayerVehicleID(playerid)))
    {
    new theOwner = GetOwner(vid);
    new xid;
    for(new x;x!=MaxVeh;x++)
    {
    if(Dtc_PlayerHaveCar[playerid][x])
    {
    if(vid == PlayerCar[theOwner][x][CarId])
    {
    xid = x;
    break;
    }
    }
    }
    PlayerCar[theOwner][xid][Kralle] = 0;
    format(globquery,256,"UPDATE `carsystem` SET `Kralle`='0' WHERE `CarOwner`='%s_%d'",GetName(playerid),xid);
    mysql_query(globquery);
    format(globquery, sizeof(globquery), "* %s baut die parkamt des Fahrzeugs ab.", GetName(playerid));
    ProxDetector(30.0, playerid, globquery, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "============= [parkamt] =============");
    SendClientMessage(playerid, COLOR_RED, "FEHLER: /parkamt [name]");
    SendClientMessage(playerid, COLOR_GREY, "Verfügbare Namen: Anbauen, Abbauen");
    SendClientMessage(playerid, COLOR_WHITE, "============= [parkamt] =============");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du gehörst nicht zum Ordnungsamt!");
    return 1;
    }
    return 1;
    }

    Hier ist der befehl

    if (strcmp("/sinfo", cmdtext, true, 10) == 0)
    {
    new string556[1024],i=0;
    if(!CallRemoteFunction("PlayerIsAdmin","i",playerid))return SCM(playerid,rot,"Du bist nicht befugt");
    for(;i<MAX_SUP;i++)
    {
    if(SupInfo[i][erstellt]==true)
    {
    if(SupInfo[i][bearbeitung]==false){format(string556,1024,"%s {00A911}%s | %s\n",string,SupInfo[i][Name],SupInfo[i][Ueberschrift]);}
    else if(SupInfo[i][bearbeitung]==true) {format(string556,1024,"%s {FFA600}[In Bearbeitung]%s | %s\n",string,SupInfo[i][Name],SupInfo[i][Ueberschrift]);}
    }
    else {format(string556,1024,"%s {940000}Support ID Nicht vergeben!\n",string);}
    }
    return Dialog(playerid,DIALOG_ASUP,LIST,"Support Menü",string,"Auswählen","Abbrechen");
    }

    hey undzwar kann ich den dialog ingame nicht aufrufen da kommt nichts habe ich vllt was falsch gemacht




    switch(dialogid)
    {
    case DIALOG_SUP:
    {
    if(response)
    {
    switch(SupDiaID[playerid])
    {
    case 1:
    {
    format(ueberschrift[playerid],50,"%s",inputtext);
    Dialog(playerid,DIALOG_SUP,INPUT,"Problem","Gebe nun dein Text ein, welcher dein Problem genauer beschreibt","Weiter","Abbrechen"),SupDiaID[playerid]=2;
    }
    case 2:
    {
    new string[300];
    format(subtext[playerid],128,"%s",inputtext);
    format(string,300,"Überschrift: %s\n\nText: %s\n\nBist du sicher das du den Support absenden möchtest?",ueberschrift[playerid],subtext[playerid]);
    Dialog(playerid,DIALOG_SUP,MSG,"Support",string,"Absenden","Abbrechen"),SupDiaID[playerid]=3;
    }
    case 3:return CreateSup(playerid,ueberschrift[playerid],subtext[playerid]);
    }
    }
    else return SCM(playerid,rot,"Du hast den Support abgebrochen"),SupDiaID[playerid]=0;
    }
    case DIALOG_ASUP:
    {
    if(response)
    {
    SupIDauswahl[playerid] = listitem;
    new string[200];
    if(SupInfo[SupIDauswahl[playerid]][erstellt]==false)return SCM(playerid,rot,"Die Support ID ist nicht vergeben"),OnPlayerCommandText(playerid,"/supinfo");
    format(string,200,"Absender: %s\nÜberschrift: %s\nText: %s",SupInfo[SupIDauswahl[playerid]][Name],SupInfo[SupIDauswahl[playerid]][Ueberschrift],SupInfo[SupIDauswahl[playerid]][Text]);
    Dialog(playerid,DIALOG_ACSUP,MSG,"Support Ticket",string,"Annehmen","Löschen");
    }
    }
    case DIALOG_ACSUP:
    {
    if(response)
    {
    new string[128];
    SupInfo[SupIDauswahl[playerid]][bearbeitung]=true;
    format(SupInfo[SupIDauswahl[playerid]][Admin],MAX_PLAYER_NAME,"%s",SpielerName(playerid));
    SupInfo[SupIDauswahl[playerid]][AdminID]=playerid;
    format(string,128,"%s hat dein Support Ticket geöffnet, du kannst einfach im Chat mit ihm schreiben",SpielerName(playerid));
    SCM(SupInfo[SupIDauswahl[playerid]][SpielerID],orange,string);
    SCM(playerid,orange,"Du hast das Ticket geöffnet, du kannst im Chat mit dem User schrieben.");
    ImSupport[playerid]=true;
    ASupportID[playerid]=SupIDauswahl[playerid];
    ImSupport[SupInfo[SupIDauswahl[playerid]][SpielerID]]=true;
    SupIDauswahl[playerid]=0;
    }
    else
    {
    new string[128];
    format(string,128,"Du hast das Ticket von %s gelöscht",SupInfo[SupIDauswahl[playerid]][Name]);
    SCM(playerid,orange,string);
    format(string,128,"%s hat dein Support Ticket gelöscht",SpielerName(playerid));
    SCM(SupInfo[SupIDauswahl[playerid]][SpielerID],orange,string);
    subgesendet[SupInfo[SupIDauswahl[playerid]][SpielerID]]=false;
    SupInfo[SupIDauswahl[playerid]][erstellt]=false;
    ImSupport[playerid]=false;
    ASupportID[playerid]=-1;
    ImSupport[SupInfo[SupIDauswahl[playerid]][SpielerID]]=false;
    SupIDauswahl[playerid]=0;
    }
    }
    }