Hallo,
ich habe 4errors -.-
if(strcmp(cmd,"/tanketor",true) == 0)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof pName);
if(!strcmp(pName,"Shanoby",true))
{
if(tanketorvar == 0)
{
MoveObject(tanketor,1811.5030517578, -1889.7384033203, 9.430456161499,4.0);
SendClientMessage(playerid, COLOR_WHITE, "Achtung! das Tor der Tankstelle schließt nicht Automatisch!");
tanketorvar = 1;
}
else
{
MoveObject(tanketor,1811.5030517578, -1889.7384033203, 15.180456161499,4.0);
tanketorvar = 0;
}
return 1;
}
}
ZitatC:\Users\Maximilian\Desktop\Smoke Reallife\gamemodes\smoke.pwn(28554) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Maximilian\Desktop\Smoke Reallife\gamemodes\smoke.pwn(28558) : error 029: invalid expression, assumed zero
C:\Users\Maximilian\Desktop\Smoke Reallife\gamemodes\smoke.pwn(28558) : warning 215: expression has no effect
C:\Users\Maximilian\Desktop\Smoke Reallife\gamemodes\smoke.pwn(28558) : error 001: expected token: ";", but found ")"
C:\Users\Maximilian\Desktop\Smoke Reallife\gamemodes\smoke.pwn(28558) : error 029: invalid expression, assumed zero
C:\Users\Maximilian\Desktop\Smoke Reallife\gamemodes\smoke.pwn(28558) : fatal error 107: too many error messages on one line
if(tanketorvar == 0)
das ist zeile 28558
Ich bitte um Hilfe -.-