Hallo Leute,
Ich war die ganze Nacht wach und habe versucht ein Error zu fixxen das mir aber nicht gelungen ist.
Darum bitte ich um hilfe.
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(10615) : warning 204: symbol is assigned a value that is never used: "vid"
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(11343) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(19302) : warning 204: symbol is assigned a value that is never used: "str"
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(33559) : warning 204: symbol is assigned a value that is never used: "carid"
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(48858) : warning 204: symbol is assigned a value that is never used: "car"
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(51689) : warning 204: symbol is assigned a value that is never used: "vehicleid"
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(53599) : error 029: invalid expression, assumed zero
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(54907) : warning 204: symbol is assigned a value that is never used: "name"
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(59867) : warning 202: number of arguments does not match definition
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(62731) : warning 203: symbol is never used: "M_OnPlayerCommandText"
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(62731) : warning 203: symbol is never used: "M_OnPlayerConnect"
C:\Users\Karuzo\Desktop\Server\gamemodes\WoL.pwn(62731) : warning 203: symbol is never used: "M_OnPlayerStateChange"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Die betroffene Zeile
forward FRAC_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
Die Zeile darüber
Function OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
Und die Zeile darunter
public FRAC_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
Gebraucht wir das ganze hier für
Function OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
forward FRAC_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
public FRAC_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
FRAC_OnDialogResponse(playerid, dialogid, response, listitem, inputtext);
if(dialogid==DIALOG_ZOLLCONTROL)
{
switch(listitem)
{
case 0: // ID
{
ShowPlayerDialog(playerid, DIALOG_ZOLLCONTROL2, DIALOG_STYLE_INPUT, "Zollkontrolle", "Zoll-ID eingeben:", "Absenden", "Abbrechen");
}
case 1: // LS-SF
{
if(zollvar[0] == 0) {
zollvar[0] = 1;
zollvar[1] = 1;
zollvar[2] = 1;
zollvar[3] = 1;
zollvar[12] = 1;
zollvar[13] = 1;
zollvar[14] = 1;
zollvar[15] = 1;
format(stringx, sizeof(stringx), "%s die Zölle von LS nach SF verschlossen.", MeinName(playerid));
SendRadioMessage(1, TEAM_BLUE_COLOR, stringx);
SendRadioMessage(2, TEAM_BLUE_COLOR, stringx);
}
else {
zollvar[0] = 0;
zollvar[1] = 0;
zollvar[2] = 0;
zollvar[3] = 0;
zollvar[12] = 0;
zollvar[13] = 0;
zollvar[14] = 0;
zollvar[15] = 0;
format(stringx, sizeof(stringx), "%s die Zölle von LS nach SF geöffnet.", MeinName(playerid));
SendRadioMessage(1, TEAM_BLUE_COLOR, stringx);
SendRadioMessage(2, TEAM_BLUE_COLOR, stringx);
}
}
case 2: // LS-LV
{
if(zollvar[9] == 0) {
zollvar[8] = 1;
zollvar[9] = 1;
zollvar[4] = 1;
zollvar[5] = 1;
zollvar[6] = 1;
zollvar[7] = 1;
format(stringx, sizeof(stringx), "%s die Zölle von LS nach LV verschlossen.", MeinName(playerid));
SendRadioMessage(1, TEAM_BLUE_COLOR, stringx);
SendRadioMessage(2, TEAM_BLUE_COLOR, stringx);
}
else {
zollvar[8] = 0;
zollvar[9] = 0;
zollvar[4] = 0;
zollvar[5] = 0;
zollvar[6] = 0;
zollvar[7] = 0;
format(stringx, sizeof(stringx), "%s die Zölle von LS nach LV geöffnet.", MeinName(playerid));
SendRadioMessage(1, TEAM_BLUE_COLOR, stringx);
SendRadioMessage(2, TEAM_BLUE_COLOR, stringx);
}
}
case 3: // SF-LV
{
if(zollvar[10] == 0) {
zollvar[10] = 1;
zollvar[11] = 1;
zollvar[16] = 1;
zollvar[17] = 1;
zollvar[18] = 1;
zollvar[19] = 1;
format(stringx, sizeof(stringx), "%s die Zölle von SF nach LV verschlossen.", MeinName(playerid));
SendRadioMessage(1, TEAM_BLUE_COLOR, stringx);
SendRadioMessage(2, TEAM_BLUE_COLOR, stringx);
}
else {
zollvar[10] = 0;
zollvar[11] = 0;
zollvar[16] = 0;
zollvar[17] = 0;
zollvar[18] = 0;
zollvar[19] = 0;
format(stringx, sizeof(stringx), "%s die Zölle von SF nach LV geöffnet.", MeinName(playerid));
SendRadioMessage(1, TEAM_BLUE_COLOR, stringx);
SendRadioMessage(2, TEAM_BLUE_COLOR, stringx);
}
}
}
}
if(dialogid==DIALOG_ZOLLCONTROL2)
{
new idzoll = strval(inputtext);
if(idzoll >= 1 && idzoll <= 20)
{
if(zollvar[idzoll-1] == 1)
{
format(stringx, sizeof(stringx), "%s hat den Zoll %d geöffnet.", MeinName(playerid), idzoll);
SendRadioMessage(1, TEAM_BLUE_COLOR, stringx);
SendRadioMessage(2, TEAM_BLUE_COLOR, stringx);
zollvar[idzoll-1] = 0;
}
else {
format(stringx, sizeof(stringx), "%s hat den Zoll %d geschlossen.", MeinName(playerid), idzoll);
SendRadioMessage(1, TEAM_BLUE_COLOR, stringx);
SendRadioMessage(2, TEAM_BLUE_COLOR, stringx);
zollvar[idzoll-1] = 1;
}
}
else SendClientMessage(playerid, COLOR_WHITE, "Nur von 1-20!");
}
if(dialogid == DIALOG_ZÖLLE)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, CLOSEZOLLLS, DIALOG_STYLE_LIST, "{FFFFFF}Los Santos Zoll", "Zoll öffnen\nZoll schließen", "Auswählen", "Abbrechen");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, CLOSEZOLLLV, DIALOG_STYLE_LIST, "{FFFFFF}Los Venturas", "Zoll schließen\nZoll öffnen", "Auswählen", "Abbrechen");
}
}
}
if(dialogid == CLOSEZOLLLS)
{
if(response)
{
if(listitem == 0)
{
MoveObject(lszoll1, 68.300003051758, -1526.5, 2.9000000953674, 3);
MoveObject(lszoll2, 67.900001525879, -1535.8000488281, 2.7999999523163, 3);
MoveObject(lszoll3, 67.699996948242, -1541.4000244141, 2.9000000953674, 3);
MoveObject(lszoll4, 35.599998474121, -1522.1999511719, 3.4000000953674, 3);
MoveObject(lszoll5, 35.099998474121, -1537.0999755859, 2.5999999046326, 3);
MoveObject(lszoll6, 35.200000762939, -1529.9000244141, 3.0999999046326, 3);
if(IsACop(playerid))
{
SendClientMessage(playerid, COLOR_RED, "Der Zoll LS wurde wieder freigegeben!");
}
}
if(listitem == 1)
{
MoveObject(lszoll1, 68.300003051758, -1526.5, 4.6999998092651, 3);
MoveObject(lszoll2, 67.900001525879, -1535.8000488281, 4.8000001907349, 3);
MoveObject(lszoll3, 67.699996948242, -1541.4000244141, 4.6999998092651, 3);
MoveObject(lszoll4, 35.599998474121, -1522.1999511719, 5.0999999046326, 3);
MoveObject(lszoll5, 35.099998474121, -1537.0999755859, 5.0999999046326, 3);
MoveObject(lszoll6, 35.200000762939, -1529.9000244141, 5.0999999046326, 3);
if(IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREEN, "Der Zoll LS wurde geschlossen!");
}
}
}
}
if(dialogid == CLOSEZOLLLV)
{
if(response)
{
if(listitem == 0)
{
MoveObject(lvzoll1, 1719.5, 511.5, 28.700000762939, 3);
MoveObject(lvzoll2, 1728.4000244141, 508.60000610352, 28.700000762939, 3);
MoveObject(lvzoll3, 1737.3000488281, 505.70001220703, 28.700000762939, 3);
MoveObject(lvzoll4, 1746.1999511719, 502.79998779297, 28.700000762939, 3);
MoveObject(lvzoll5, 1763.5, 550.5, 25.700000762939, 3);
MoveObject(lvzoll6, 1754.5999755859, 553.40002441406, 25.700000762939, 3);
MoveObject(lvzoll7, 1745.6999511719, 556.29998779297, 25.700000762939, 3);
MoveObject(lvzoll8, 1736.8000488281, 559.20001220703, 25.700000762939, 3);
if(IsACop(playerid))
{
SendClientMessage(playerid, COLOR_RED, "Der Zoll LV wurde geschlossen!");
}
}
if(listitem == 1)
{
MoveObject(lvzoll1, 1719.5, 511.5, 26, 3);
MoveObject(lvzoll2, 1728.4000244141, 508.60000610352, 26.200000762939, 3);
MoveObject(lvzoll3, 1737.3000488281, 505.70001220703, 26, 3);
MoveObject(lvzoll4, 1746.1999511719, 502.79998779297, 25.700000762939, 3);
MoveObject(lvzoll5, 1763.5, 550.5, 23.200000762939, 3);
MoveObject(lvzoll6, 1754.5999755859, 553.40002441406, 23.200000762939, 3);
MoveObject(lvzoll7, 1745.6999511719, 556.29998779297, 23.5, 3);
MoveObject(lvzoll8, 1736.8000488281, 559.20001220703, 23.700000762939, 3);
if(IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREEN, "Der Zoll LV wurde wieder freigegeben!");
}
}
}
}
Ich weiß leider überhaupt nicht was ich machen soll/muss deswegen bitte ich um Hilfe und bedanke mich schonmal im vorraus
Mit freundlichen Grüßen
Karuzo©