Beiträge von Renewaslos

    Ja ich bekomme immer ne Fehlermeldung und ich bin noch Anfänger!!! Kann mir da vielleicht einer helfen???


    Die Fehlermeldung:


    C:\Users\Rene\Desktop\Untitled.pwn(93) : error 017: undefined symbol "name"
    C:\Users\Rene\Desktop\Untitled.pwn(93) : error 017: undefined symbol "name"
    C:\Users\Rene\Desktop\Untitled.pwn(93) : error 029: invalid expression, assumed zero
    C:\Users\Rene\Desktop\Untitled.pwn(93) : 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 weis nicht was ich falsch gemacht habe und brauche diesen Script dringend!!!! Könnte das vielleicht einer von euch fixen???? Wäre euch super dankbar!!!


    Hier der Script:







    if(strcmp("/dd",cmdtext,true) == 0)
    {
    GetPlayerName(playerid,name,sizeof(name));
    if (IsPlayerAdmin(playerid)
    {
    if(drugdealer[playerid] == 0)
    {
    drugdealer[playerid] = 1;
    SendClientMessage(playerid,COLOR_WHITE,"Congratulations you are a DrugDealer!");
    SendClientMessage(playerid,COLOR_WHITE,"If you need help, type /dhelp");
    }
    else if(drugdealer[playerid] == 1)
    {
    SendClientMessage(playerid,COLOR_RED,"You are already a Drugdealer!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You aren't an Admin->Command forbidden!");
    SendClientMessage(playerid,COLOR_RED,"Use: /rcon login[password] !");
    }
    return 1;
    }

    if(strcmp("/dd0",cmdtext,true) == 0)
    {
    drugdealer[playerid] = 0;
    SendClientMessage(playerid,COLOR_WHITE,"You Are A DrugDealer No More!");
    return 1;
    }


    //------------------------------BUY-------------DRUGS---------------------------------
    if(strcmp("/bweed",cmdtext,true) == 0)
    {
    if(IsInGunGame[playerid] == 0 && IsInCHole[playerid] == 0 && IsInMotel[playerid] == 0 && Boxen[playerid] == 0)
    {
    if(drugdealer[playerid] == 1)
    {
    wweed[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"Go To The Checkpoint To Get Your Requested Weed!");
    SetPlayerCheckpoint(playerid,2503.6045,-1975.3307,13.4393,5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"This Command is not available, when you are in a Deathmatch!");
    }
    return 1;
    }

    if(strcmp("/balcohol",cmdtext,true) == 0)
    {
    if(IsInGunGame[playerid] == 0 && IsInCHole[playerid] == 0 && IsInMotel[playerid] == 0 && Boxen[playerid] == 0)
    {
    if(drugdealer[playerid] == 1)
    {
    walcohol[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"Go To The Bar To Get Your Requested Alcohol!");
    SetPlayerCheckpoint(playerid,2305.2444,-1644.5596,14.3846,5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"This Command is not available, when you are in a Deathmatch!");
    }
    return 1;
    }

    if(strcmp("/bsteroids",cmdtext,true) == 0)
    {
    if(IsInGunGame[playerid] == 0 && IsInCHole[playerid] == 0 && IsInMotel[playerid] == 0 && Boxen[playerid] == 0)
    {
    if(drugdealer[playerid] == 1)
    {
    wsteroids[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"Go To The Gym To Get Your Requested Steroids!");
    SetPlayerCheckpoint(playerid,2227.9648,-1724.4446,13.4476,5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"This Command is not available, when you are in a Deathmatch!");
    }
    return 1;
    }

    if(strcmp("/bcrack",cmdtext,true) == 0)
    {
    if(IsInGunGame[playerid] == 0 && IsInCHole[playerid] == 0 && IsInMotel[playerid] == 0 && Boxen[playerid] == 0)
    {
    if(drugdealer[playerid] == 1)
    {
    wcrack[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"Go To The Checkpoint To Get Your Requested Crack!");
    SetPlayerCheckpoint(playerid,2503.6045,-1975.3307,13.4393,5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"This Command is not available, when you are in a Deathmatch!");
    }
    return 1;
    }



    if(strcmp("/mydrugs",cmdtext,true) == 0)
    {
    format(string,sizeof(string),"Weed:%d",weed[playerid]);
    SendClientMessage(playerid,COLOR_GREEN,string);
    format(string,sizeof(string),"Alcohol:%d",alcohol[playerid]);
    SendClientMessage(playerid,COLOR_GREEN,string);
    format(string,sizeof(string),"Steroids:%d",steroids[playerid]);
    SendClientMessage(playerid,COLOR_GREEN,string);
    format(string,sizeof(string),"Crack:%d",crack[playerid]);
    SendClientMessage(playerid,COLOR_GREEN,string);
    return 1;
    }


    //----------------TAKE---------------------DRUGS----------------------------------------------
    if(strcmp("/tweed",cmdtext,true) == 0)
    {
    if(weed[playerid] >= 1)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
    weed[playerid] -=1;
    SendClientMessage(playerid,COLOR_GREEN,"Have Fun While Being High!");
    SetPlayerDrunkLevel (playerid, 25000);
    return 1;
    }
    else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ApplyAnimation(playerid,"PED","smoke_in_car",4.0,1,0,0,0,20000);
    weed[playerid] -=1;
    SendClientMessage(playerid,COLOR_GREEN,"Have Fun While Driving with Being High!");
    SetPlayerDrunkLevel (playerid, 25000);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't Have Weed!");
    return 1;
    }
    }


    if(strcmp("/talcohol",cmdtext,true) == 0)
    {
    if(alcohol[playerid] >= 1)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    alcohol[playerid] -=1;
    SendClientMessage(playerid,COLOR_GREEN,"You Are drinking Beer!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't Have Alcohol!");
    return 1;
    }
    }

    if(strcmp("/tsteroids",cmdtext,true) == 0)
    {
    if(steroids[playerid] >= 1)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
    ApplyAnimation(playerid,"MUSCULAR","MuscleIdle",4.1,1,1,1,0,200000);
    steroids[playerid] -=1;
    SendClientMessage(playerid,COLOR_GREEN,"See more Muscels huh?");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't Have Steroids!");
    }
    return 1;
    }

    if(strcmp("/tcrack",cmdtext,true) == 0)
    {
    if(crack[playerid] >= 1)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
    ApplyAnimation(playerid,"CRACK","crckidle4",4.1,1,1,1,1,1);
    crack[playerid]-=1;
    SendClientMessage(playerid,COLOR_GREEN,"You are Stoned");
    SetPlayerDrunkLevel (playerid, 50000);
    SetPlayerWeather(playerid, -66);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't Have Crack!");
    return 1;
    }
    }



    //-------------------SELL----------------------DRUGS-------------------------------------------
    if(strcmp("/sweed_to",cmd,true) == 0)
    {
    tmp = strtok(cmdtext,index);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_RED,"Usage: /sweed_to[playerid]");
    return 1;
    }
    //new giveplayerid = ReturnUser(tmp);

    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(drugdealer[playerid] == 1)
    {
    if(weed[playerid] >= 1)
    {
    if(rweed[giveplayerid]==1)
    {
    GetPlayerName(playerid,name,sizeof(name));
    GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer));
    weed[giveplayerid]+=1;
    SendClientMessage(playerid,COLOR_GREEN,"You Selled 1 Gramm of Weed for 130$!");
    SendClientMessage(giveplayerid,COLOR_GREEN,"You Became 1 Gramm of Weed and gave 130$");
    GivePlayerMoney(playerid,130);
    GivePlayerMoney(giveplayerid,-130);
    weed[playerid]-=1;
    rweed[giveplayerid] = 0;
    }
    else
    {
    format(string,sizeof(string),"%s doesn't want Weed!",name);
    SendClientMessage(playerid,COLOR_RED,string);
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't Have Weed!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,COLOR_RED,"This Player Doesn't Exists");
    }
    return 1;
    }

    if(strcmp("/salcohol_to",cmd,true) == 0)
    {
    tmp = strtok(cmdtext,index);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_RED,"Usage: /salcohol_to[playerid]");
    return 1;
    }
    //new giveplayerid = ReturnUser(tmp);


    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(drugdealer[playerid] == 1)
    {
    if(alcohol[playerid] >= 1)
    {
    if(ralcohol[giveplayerid]==1)
    {
    GetPlayerName(playerid,name,sizeof(name));
    GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer));
    alcohol[giveplayerid]+=1;
    SendClientMessage(playerid,COLOR_GREEN,"You Selled 1 Liter Alcohol for 80$!");
    SendClientMessage(giveplayerid,COLOR_GREEN,"You Became 1 Liter Alcohol and gave 80$");
    GivePlayerMoney(playerid,80);
    GivePlayerMoney(giveplayerid,-80);
    alcohol[playerid]-=1;
    ralcohol[giveplayerid] = 0;
    }
    else
    {
    format(string,sizeof(string),"%s doesn't want Alcohol!",name);
    SendClientMessage(playerid,COLOR_RED,string);
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't Have Alcohol!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,COLOR_RED,"This Player Doesn't Exists");
    }
    return 1;
    }

    if(strcmp("/ssteroids_to",cmd,true) == 0)
    {
    tmp = strtok(cmdtext,index);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_RED,"Usage: /ssteroids_to[playerid]");
    return 1;
    }
    //new giveplayerid = ReturnUser(tmp);


    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(drugdealer[playerid] == 1)
    {
    if(steroids[playerid] >= 1)
    {
    if(rsteroids[giveplayerid]==1)
    {
    GetPlayerName(playerid,name,sizeof(name));
    GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer));
    steroids[giveplayerid]+=1;
    SendClientMessage(playerid,COLOR_GREEN,"You Selled 1 ml Steroids for 200$!");
    SendClientMessage(giveplayerid,COLOR_GREEN,"You Became 1 ml Steroids and gave 200$");
    GivePlayerMoney(playerid,200);
    GivePlayerMoney(giveplayerid,-200);
    steroids[playerid]-=1;
    rsteroids[giveplayerid] = 0;
    }
    else
    {
    format(string,sizeof(string),"%s doesn't want Steroids!",name);
    SendClientMessage(playerid,COLOR_RED,string);
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't Have Steroids!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,COLOR_RED,"This Player Doesn't Exists");
    }
    return 1;
    }

    if(strcmp("/scrack_to",cmd,true) == 0)
    {
    tmp = strtok(cmdtext,index);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_RED,"Usage: /scrack_to[playerid]");
    return 1;
    }
    //new giveplayerid = ReturnUser(tmp);


    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(drugdealer[playerid] == 1)
    {
    if(crack[playerid] >= 1)
    {
    if(rcrack[giveplayerid]==1)
    {
    GetPlayerName(playerid,name,sizeof(name));
    GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer));
    crack[giveplayerid]+=1;
    SendClientMessage(playerid,COLOR_GREEN,"You Selled 1 Gramm Crack for 95$!");
    SendClientMessage(giveplayerid,COLOR_GREEN,"You Became 1 Gramm Crack and gave 95$");
    GivePlayerMoney(playerid,95);
    GivePlayerMoney(giveplayerid,-95);
    crack[playerid]-=1;
    rcrack[giveplayerid] = 0;
    }
    else
    {
    format(string,sizeof(string),"%s doesn't want Crack!",name);
    SendClientMessage(playerid,COLOR_RED,string);
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't Have Crack!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,COLOR_RED,"This Player Doesn't Exists");
    }
    return 1;
    }


    if(strcmp("/sweed",cmdtext,true) == 0)
    {
    if(drugdealer[playerid] == 1)
    {
    if(weed[playerid] >= 1)
    {
    if(sweed[playerid] == 0)
    {
    sweed[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"You got a Buyer ... Go to his House to deal your Weed");
    new rand = random(sizeof(RandomCustomer));
    SetPlayerCheckpoint(playerid,RandomCustomer[rand][0],RandomCustomer[rand][1],RandomCustomer[rand][2],5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Go to his House!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You don't have Weed !");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    return 1;
    }


    if(strcmp("/salcohol",cmdtext,true) == 0)
    {
    if(drugdealer[playerid] == 1)
    {
    if(alcohol[playerid] >= 1)
    {
    if(salcohol[playerid] == 0)
    {
    salcohol[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"You got a Buyer ... Go to his House to deal your Alcohol!");
    new rand = random(sizeof(RandomCustomer));
    SetPlayerCheckpoint(playerid,RandomCustomer[rand][0],RandomCustomer[rand][1],RandomCustomer[rand][2],5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Go to his House!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You don't have Alcohol !");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    return 1;
    }


    if(strcmp("/ssteroids",cmdtext,true) == 0)
    {
    if(drugdealer[playerid] == 1)
    {
    if(steroids[playerid] >= 1)
    {
    if(ssteroids[playerid] == 0)
    {
    ssteroids[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"You got a Buyer ... Go to his House to deal your Steroids!");
    new rand = random(sizeof(RandomCustomer));
    SetPlayerCheckpoint(playerid,RandomCustomer[rand][0],RandomCustomer[rand][1],RandomCustomer[rand][2],5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Go to his House!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You don't have Steroids !");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    return 1;
    }


    if(strcmp("/scrack",cmdtext,true) == 0)
    {
    if(drugdealer[playerid] == 1)
    {
    if(crack[playerid] >= 1)
    {
    if(scrack[playerid] == 0)
    {
    scrack[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"You got a Buyer ... Go to his House to deal your Crack!");
    new rand = random(sizeof(RandomCustomer));
    SetPlayerCheckpoint(playerid,RandomCustomer[rand][0],RandomCustomer[rand][1],RandomCustomer[rand][2],5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Go to his House!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You don't have Crack !");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Ain't A DrugDealer!");
    }
    return 1;
    }

    //-----------------------------Request--Drug---------------------------------------------------------------
    if(strcmp("/rweed",cmd,true) == 0)
    {
    tmp = strtok(cmdtext,index);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_RED,"Usage:/rweed[playerid]");
    return 1;
    }
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid,player,sizeof(player)),
    rweed[playerid] =1;
    format(string,sizeof(string),"%s Wants some Weed!",player);
    SendClientMessage(giveplayerid,COLOR_WHITE,string);
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,COLOR_RED,"That Player doesn't exists!");
    }
    return 1;
    }

    if(strcmp("/ralcohol",cmd,true) == 0)
    {
    tmp = strtok(cmdtext,index);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_RED,"Usage:/ralcohol[playerid]");
    return 1;
    }
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid,player,sizeof(player)),
    ralcohol[playerid] =1;
    format(string,sizeof(string),"%s Wants some Alcohol!",player);
    SendClientMessage(giveplayerid,COLOR_WHITE,string);
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,COLOR_RED,"That Player doesn't exists!");
    }
    return 1;
    }

    if(strcmp("/rsteroids",cmd,true) == 0)
    {
    tmp = strtok(cmdtext,index);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_RED,"Usage:/rsteroids[playerid]");
    return 1;
    }
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid,player,sizeof(player)),
    rsteroids[playerid] =1;
    format(string,sizeof(string),"%s Wants some Steroids!",player);
    SendClientMessage(giveplayerid,COLOR_WHITE,string);
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,COLOR_RED,"That Player doesn't exists!");
    }
    return 1;
    }

    if(strcmp("/rcrack",cmd,true) == 0)
    {
    tmp = strtok(cmdtext,index);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_RED,"Usage:/rcrack[playerid]");
    return 1;
    }
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid,player,sizeof(player)),
    rcrack[playerid] =1;
    format(string,sizeof(string),"%s Wants some crack!",player);
    SendClientMessage(giveplayerid,COLOR_WHITE,string);
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    SendClientMessage(playerid,COLOR_RED,"That Player doesn't exists!");
    }
    return 1;
    }




    Danke schonmal im voraus!!! :) :) :) :) :)

    Könnte einer von den erfahrenen Scriptern eventuell ein Pilot System scripten??? Also ich meine wenn man zu einem von den drei Airports geht und in ein Shamal steigt, das da zum beispiel steht: "Pilot-Mission starten" und man die Taste 2 drückt um die Mission zu starten!!! Dann wartet man am Airport auf Pasagiere und fliegt zum nächsten Airport und bekommt zB. 500$ oder so!!! Ist das zu viel verlangt oder kriegt jemand das hin??? Ich bin noch Anfänger und kann noch nicht so geile Sachen scripten!!! THX :D :D :D :D :D :D :)