Tag
Irgendwie werden mir 4 Errors/Warnings Angezeigt und ich weiß nicht was Falsch sein soll
Ich habs so Probiert ocmd:buyct(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,10,-20.8592,30.7804,3.1172)
if(gTeam[playerid] !== TEAM_CT)return SendClientMessage(playerid,ROT,"SERVER: Du bist nicht im CT Team.");
{
ShowPlayerDialog(playerid,DIALOG_WAFFENCT,DIALOG_STYLE_LIST,"CT Waffen","M4A1(3600$)\nDeagle(800$)\nMP5(1300$)\nShotgun(2200$)\nAuto Shotgun(2800$)\nMAC10(1600$)\nSniper(4500$)\nArmor(100$)","Auswählen","Beenden");
}
return 1;
}
: error 001: expected token: ")", but found "if"
error 029: invalid expression, assumed zero
: warning 215: expression has no effect
error 001: expected token: ";", but found ")"
fatal error 107: too many error messages on one line
ocmd:buyct(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,10,-20.8592,30.7804,3.1172)
{
if(gTeam[playerid] !== TEAM_CT)return SendClientMessage(playerid,ROT,"SERVER: Du bist nicht im CT Team.");
{
ShowPlayerDialog(playerid,DIALOG_WAFFENCT,DIALOG_STYLE_LIST,"CT Waffen","M4A1(3600$)\nDeagle(800$)\nMP5(1300$)\nShotgun(2200$)\nAuto Shotgun(2800$)\nMAC10(1600$)\nSniper(4500$)\nArmor(100$)","Auswählen","Beenden");
}
}
return 1;
}
: error 001: expected token: ")", but found "{"
: error 029: invalid expression, assumed zero
: warning 215: expression has no effect
: error 001: expected token: ";", but found ")"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
So
Immer kommen Warnings / Errors