Hallo Brotfische,
habe heute einen befehl getippt um den Anti-Weapon-Hack ein-und auszuschalten.
Hier der Code mit den unerklärlichen Errorzeilen:
new wphack;
if(strcmp(cmdtext, "/wphackon", true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin]=>1333) <------ Errorzeile 22999
{
wphack=1;
}
return 1;
}
return 1;
}
if(strcmp(cmdtext, "/wphackoff", true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin]=>1333)
{
wphack=0;
}
return 1;
}
return 1;
}
Errors:
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(6469) : warning 217: loose indentation
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(19625) : error 017: undefined symbol "wphack"
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(19625) : warning 215: expression has no effect
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(22999) : warning 211: possibly unintended assignment
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(22999) : error 029: invalid expression, assumed zero
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(22999) : warning 215: expression has no effect
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(22999) : error 001: expected token: ";", but found ")"
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(22999) : error 029: invalid expression, assumed zero
C:\Users\Marcel\Desktop\GameCide\gamemodes\GameCide2.2.pwn(22999) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.