Hallo ich bekomme 5 errrors
ocmd:stats(playerid)
{
new frakt[60];
new pname[MAX_PLAYERS]; GetPlayerName(playerid,pname,sizeof pname); new string[256]; new money = GetPlayerMoney(playerid);
switch(Spieler[playerid][Fraktion])
{
case 1: {frakt=frakname}
case 2: {frakt=frakname1}
case 3: {frakt=frakname2}
case 4: {frakt=fraktname3}
case 5: {frakt=frakname4}
}
format(string,sizeof(string),"Name: %s\nGeld: %d$\nFraktion: %s\nBank: %d$",pname,money,frakt,Spieler[playerid][bank]);
ShowPlayerDialog(playerid,stats,DIALOG_STYLE_MSGBOX,"Statistiken",string,"Ok","Abbrechen");
return 1;
}
Die Errors:
C:\Users\muhammed\Desktop\samp\gamemodes\EmergencyGamemode.pwn(1409) : error 017: undefined symbol "frakname"
C:\Users\muhammed\Desktop\samp\gamemodes\EmergencyGamemode.pwn(1410) : error 017: undefined symbol "frakname1"
C:\Users\muhammed\Desktop\samp\gamemodes\EmergencyGamemode.pwn(1411) : error 017: undefined symbol "frakname2"
C:\Users\muhammed\Desktop\samp\gamemodes\EmergencyGamemode.pwn(1412) : error 017: undefined symbol "fraktname3"
C:\Users\muhammed\Desktop\samp\gamemodes\EmergencyGamemode.pwn(1413) : error 017: undefined symbol "frakname4"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
define:
#define Frakname "Zivilist"
#define Frakname2 "Brandstifter"
#define Frakname3 "Polizei"
#define Frakname4 "Medic"
#define Frakname5 "Feuerwehr"