C:\Users\Tobias\Desktop\Download\German Electro Reallife\World of San Andreas 4.0\gamemodes\xDiaZ.pwn(39746) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Tobias\Desktop\Download\German Electro Reallife\World of San Andreas 4.0\gamemodes\xDiaZ.pwn(39748) : error 017: undefined symbol "HaveTaser"
C:\Users\Tobias\Desktop\Download\German Electro Reallife\World of San Andreas 4.0\gamemodes\xDiaZ.pwn(39748) : warning 215: expression has no effect
C:\Users\Tobias\Desktop\Download\German Electro Reallife\World of San Andreas 4.0\gamemodes\xDiaZ.pwn(39748) : error 001: expected token: ";", but found "]"
C:\Users\Tobias\Desktop\Download\German Electro Reallife\World of San Andreas 4.0\gamemodes\xDiaZ.pwn(39748) : error 029: invalid expression, assumed zero
C:\Users\Tobias\Desktop\Download\German Electro Reallife\World of San Andreas 4.0\gamemodes\xDiaZ.pwn(39748) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(strcmp("/nehmetazer", cmd, true) == 0)
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
new tmp[258];
SetPlayerAttachedObject(playerid, 0, 18642, 6, 0.06, 0.01, 0.08, 180.0, 0.0, 0.0);
HaveTaser[playerid] = 1;
format(tmp,sizeof(tmp),"{E0E0E0}Du hast dein {FF002F}Tazer {E0E0E0}angelegt.");
SendClientMessage(playerid,0xFFFFFF,tmp);
}
}
if(strcmp("/tazerweglegen", cmd, true) == 0)
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
new tmp[258];
RemovePlayerAttachedObject(playerid, 0);
HaveTaser[playerid] = 0;
format(tmp,sizeof(tmp),"{E0E0E0}Du hast dein {FF002F}Tazer {E0E0E0}weggelegt.");
SendClientMessage(playerid,0xFFFFFF,tmp);
}
}
bitte helft mir