Hallo liebe Scripter
Ich frage mich gerade warum mein Pawno Crasht bei den Zeilen.
C
else if(strcmp("/buygun", cmdtext, true, 10) == 0)
{
new an = GetPVarInt(playerid,"AmmunationID");
if(GetPlayerInterior(playerid) != 1)return SendClientMessage(playerid,COLOR_SORRY,"Du befindest dich nicht im Ammunation.");
if(!IsPlayerInRangeOfPoint(playerid,3.0,295.7924,-38.2544,1001.5156))return SendClientMessage(playerid,COLOR_SORRY,"Du befindest dich nicht an der Kasse.");
if(SpielerInfo[playerid][sWeaponLic] == 0)return SendClientMessage(playerid,COLOR_SORRY,"Um dir hier Waffen kaufen zu können, benötigst du einen Waffenschein.");
if(SpielerInfo[playerid][sWeaponLic] == 1){
new string1[550];
format(string1,sizeof(string1),"Artikel\tPreis\tMunition\n{FFFFFF}Rüstung{00FE00}\t%d\t100 Munition\nSchlagring\t{FF0000}%d{FFFFFF}\t1 Munition\nMesser\t{FF0000}%d{FFFFFF}\t1 Munition\nBaseballschläger{FE0000}\t{FF0000}%d{FFFFFF}\t1 Munition{FE0000}\nDesert Eagle\t{FF0000}%d{FFFFFF}\t100 Munition\nMP5\t{FF0000}%d{FFFFFF}\t500 Munition\nAK-47\t{FF0000}%d{FFFFFF}\t500 Munition\nM4\t{FF0000}%d{FFFFFF}\t500 Munition\nSniper\t{FF0000}%d{FFFFFF}\t100 Munition\n{00FE00}Fallschirm\t{FF0000}%d{FFFFFF}\t1 Munition",
AmmunationInfo[an][amArmour],AmmunationInfo[an][amSchlagring]AmmunationInfo[an][amMesser],AmmunationInfo[an][amBaseball],AmmunationInfo[an][amDeagle],AmmunationInfo[an][amMP5],AmmunationInfo[an][amAK],AmmunationInfo[an][amM4],AmmunationInfo[an][amSniper],AmmunationInfo[an][amFallschirm]);
ShowPlayerDialog(playerid,DIALOG_BUYGUN,DIALOG_STYLE_TABLIST_HEADERS,"{007DFF}"SERV_NAME" | Waffenladen",string1,"Kaufen","Verlassen");
}
if(SpielerInfo[playerid][sWeaponLic] == 2){
new string2[550];
format(string2,sizeof(string2),"Artikel\tPreis\tMunition\n{FFFFFF}Rüstung{00FE00}\t%d\t100 Munition\nSchlagring\t{FF0000}%d{FFFFFF}\t1 Munition\nMesser\t{FF0000}%d{FFFFFF}\t1 Munition\nBaseballschläger\t{FF0000}%d{FFFFFF}\t1 Munition\nDesert Eagle\t{FF0000}%d{FFFFFF}\t100 Munition{FE0000}\nMP5\t{FF0000}%d{FFFFFF}\t500 Munition\nAK-47\t{FF0000}%d{FFFFFF}\t500 Munition\nM4\t{FF0000}%d{FFFFFF}\t500 Munition\nSniper\t{FF0000}%d{FFFFFF}\t100 Munition\n{00FE00}Fallschirm\t{FF0000}%d{FFFFFF}\t1 Munition",
AmmunationInfo[an][amArmour],AmmunationInfo[an][amSchlagring],AmmunationInfo[an][amMesser],AmmunationInfo[an][amBaseball],AmmunationInfo[an][amDeagle],AmmunationInfo[an][amMP5],AmmunationInfo[an][amAK],AmmunationInfo[an][amM4],AmmunationInfo[an][amSniper],AmmunationInfo[an][amFallschirm]);
ShowPlayerDialog(playerid,DIALOG_BUYGUN,DIALOG_STYLE_TABLIST_HEADERS,"{007DFF}"SERV_NAME" | Waffenladen",string2,"Kaufen","Verlassen");
}
if(SpielerInfo[playerid][sWeaponLic] == 3){
new string3[550];
format(string3,sizeof(string3),"Artikel\tPreis\tMunition\n{FFFFFF}Rüstung{00FE00}\t%d\t100 Munition\nSchlagring\t{FF0000}%d{FFFFFF}\t1 Munition\nMesser\t{FF0000}%d{FFFFFF}\t1 Munition\nBaseballschläger{FE0000}\t{FF0000}%d{FFFFFF}\t1 Munition\nDesert Eagle\t{FF0000}%d{FFFFFF}\t100 Munition\nMP5\t{FF0000}%d{FFFFFF}\t500 Munition\nAK-47\t{FF0000}%d{FFFFFF}\t500 Munition\nM4\t{FF0000}%d{FFFFFF}\t500 Munition{FE0000}\nSniper\t{FF0000}%d{FFFFFF}\t100 Munition\nFallschirm\t{FF0000}%d{FFFFFF}\t1 Munition",
AmmunationInfo[an][amArmour],AmmunationInfo[an][amSchlagring],AmmunationInfo[an][amMesser],AmmunationInfo[an][amBaseball],AmmunationInfo[an][amDeagle],AmmunationInfo[an][amMP5],AmmunationInfo[an][amAK],AmmunationInfo[an][amM4],AmmunationInfo[an][amSniper],AmmunationInfo[an][amFallschirm]);
ShowPlayerDialog(playerid,DIALOG_BUYGUN,DIALOG_STYLE_TABLIST_HEADERS,"{007DFF}"SERV_NAME" | Waffenladen",string3,"Kaufen","Verlassen");
}
if(SpielerInfo[playerid][sWeaponLic] == 4){
new string4[550];
format(string4,sizeof(string4),"Artikel\tPreis\tMunition\n{FFFFFF}Rüstung{00FE00}\t%d\t100 Munition\nSchlagring\t{FF0000}%d{FFFFFF}\t1 Munition\nMesser\t{FF0000}%d{FFFFFF}\t1 Munition\nBaseballschläger\t{FF0000}%d{FFFFFF}\t1 Munition\nDesert Eagle\t{FF0000}%d{FFFFFF}\t100 Munition\nMP5\t{FF0000}%d{FFFFFF}\t500 Munition\nAK-47\t{FF0000}%d{FFFFFF}\t500 Munition\nM4\t{FF0000}%d{FFFFFF}\t500 Munition\nSniper\t{FF0000}%d{FFFFFF}\t100 Munition\nFallschirm\t{FF0000}%d{FFFFFF}\t1 Munition",
AmmunationInfo[an][amArmour],AmmunationInfo[an][amSchlagring],AmmunationInfo[an][amMesser],AmmunationInfo[an][amBaseball],AmmunationInfo[an][amDeagle],AmmunationInfo[an][amMP5],AmmunationInfo[an][amAK],AmmunationInfo[an][amM4],AmmunationInfo[an][amSniper],AmmunationInfo[an][amFallschirm]);
ShowPlayerDialog(playerid,DIALOG_BUYGUN,DIALOG_STYLE_TABLIST_HEADERS,"{007DFF}"SERV_NAME" | Waffenladen",string4,"Kaufen","Verlassen");
}
return 1;
}
Alles anzeigen
Ist es zulang oder was ist da?