Hallo Community,
Wo ist hier bitte der Fehler:
if(strcmp(cmd, "/lsdepot", true) == 0)
{
if(IsPlayerConnected(playerid) || IsACop(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,10.0,213.9894,107.6889,1003.2188)
{
SetPlayerPos(playerid, 217.3635,78.9132,1005.0391);
SendClientMessage(playerid, COLOR_GRAD1, " Du bist beim LS Depot!");
SetPlayerInterior(playerid,6);
SpielerInfo[playerid][pInt] = 6;
}
}
return 1;
}
if(strcmp(cmd, "/fbidepot", true) == 0)
{
if(IsPlayerConnected(playerid) || IsACop(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,10.0,217.3635,78.9132,1005.0391)
{
SetPlayerPos(playerid,213.9894,107.6889,1003.2188);
SendClientMessage(playerid, COLOR_GRAD1, " Du bist beim FBI Depot!");
SetPlayerInterior(playerid,10);
SpielerInfo[playerid][pInt] = 10);
}
}
return 1;
}
Die Fehlerzeilen:
Zeile (29843) : error 001: expected token: ")", but found "{"
Zeile (29857) : error 001: expected token: ")", but found "{"
Zeile (29861) : error 001: expected token: ";", but found ")"
Zeile (29861) : error 029: invalid expression, assumed zero
Zeile (29861) : warning 215: expression has no effect
Weiß net ist doch eig alles richtig oder?!
/edit hat sich reledigt hab 2 Klammern vergessen XD