Also ich habe mir hier man ein tut angeguckt und versucht einen Job zu machen Aber ich kriege immer 7 errors und ka was ich jetz machen muss ..
Hier einmal die Zeilen und die Errors
{
if(strcmp("/jobs", cmdtext, true) == 0)
{
if(GetPVarInt(playerid, "pJob") != 0)return true;
new str[256];
for(new i=0; i < Jobs_On_This_Server; i++)format(str, sizeof(str), "%s\n%s", str, Jobs[i][jName]);
ShowPlayerDialog(playerid, DiaJob, DIALOG_SLYLE_LIST, "Jobs", str, "Auswählen", "Abbrechen");
SetPVarInt(playerid, "DiaAction", 1);
return true;
}
if(strcmp("/kündigen", cmdtext, true) == 0)
{
if(GetPVarInt(playerid, "pJob") == 0)return true; // Der Spieler hat keinen Job
ShowPlayerDialog(playerid, DiaJob, DIALOG_STYLE_MSGBOX, "Kündigung", "Bist du dir sicher das du deinen Job kündigen willst?", "Ja", "Abbrechen");
SetPVarInt(playerid, "DiaAction", 2);
return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{if(dialogid==DiaJob)
{
switch(GetPVarInt(playerid, "DiaAction"))
{
case 1:
{
if(respone)
{
SetPVarInt(playerid, "SelectedJob", listitem+1);
SetPVarInt(playerid, "DiaAction", 3);
new str[128];
format(str, 128, "Bist du dir sicher das du den Job %s\nMachen möchtest ?", Jobs[listitem+1][jName]);
ShowPlayerDialog(playerid, DiaJob, DIALOG_STYLE_MSGBOX, "Bestätigen", str, "JA", "Zurück");
}
else return true;
}
case 2:
{
if(response)
{
SetPVarInt(playerid, "DiaAction", 0);
ShowPlayerDialog(playerid, DiaJob, DIALOG_STYLE_INPUT, "Kündigung", "Du hast deinen Beruf erfolgreich gekündigt.", "OK", "");
SetPVarInt(playerid, "pJob", 0);
}
else return true;
}
case 3:
{
if(response)
{
SetPVarInt(playerid, "pJob", GetPVarInt(playerid, "SelectedJob"));
new str[128];
format(str, 128, "Info: Du hast den Job %s\nNun angenommen.", Jobs[GetPVarInt(playerid, "pJob")][jName]);
ShowPlayerDialog(playerid, DiaJob, DIALOG_STYLE_MSGBOX, "Info", str,"OK", "");
SetPVarInt(playerid, "DiaAction", 0);
return true;
}
else
{
for(new i=0; i < Jobs_On_This_Server; i++)format(str, sizeof(str), "%s\n%s", str, Jobs[i][jName]);
ShowPlayerDialog(playerid, DiaJob, DIALOG_SLYLE_LIST, "Jobs", str, "Auswählen", "Abbrechen");
SetPVarInt(playerid, "DiaAction", 1);
return true;
}
}
}
}
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(15) : error 017: undefined symbol "Jobs_On_This_Server"
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(345) : warning 213: tag mismatch
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(346) : error 017: undefined symbol "DIALOG_SLYLE_LIST"
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(569) : error 017: undefined symbol "respone"
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(574) : warning 213: tag mismatch
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(595) : warning 213: tag mismatch
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(602) : error 017: undefined symbol "str"
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(602) : error 017: undefined symbol "str"
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(602) : error 029: invalid expression, assumed zero
C:\Users\Nico\Desktop\Alles was mit gta zu tuen hat\2Ter Versuch\gamemodes\GaR.pwn(602) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.