Hallo Liebe Community ich bekomme 8 Errors bei meinem registrations aus/an schalt system was mache ich falsch :o
if(strcmp("/register", cmd, true) == 0)
{
new string[128];//ZEILE: 40454
if(PlayerInfo[playerid][pAdmin] == 2000)
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Admin ´2000´!");
return 1;
}
if(registration == false)//ZEILE: 40460
{
registration = true;//ZEILE 40062
format(string,sizeof(string),"Admin: %s hat die Registration ausgeschaltet.",PlayerInfo[playerid][pName]);
SendClientMessageToAll(0x4BB400FF,string);
}
else
{
registration = false;//ZEILE: 40468
format(string,sizeof(string),"Admin %s hat die Registration eingeschaltet.",PlayerInfo[playerid][pName]);
SendClientMessageToAll(0x4BB400FF,string);
}
return 1;
}
C:\Users\Denis\Desktop\INDEPENDENT ROLEPLAY\gamemodes\erporiginal.pwn(40454) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Denis\Desktop\INDEPENDENT ROLEPLAY\gamemodes\erporiginal.pwn(40460) : warning 213: tag mismatch
C:\Users\Denis\Desktop\INDEPENDENT ROLEPLAY\gamemodes\erporiginal.pwn(40460) : warning 205: redundant code: constant expression is zero
C:\Users\Denis\Desktop\INDEPENDENT ROLEPLAY\gamemodes\erporiginal.pwn(40462) : error 022: must be lvalue (non-constant)
C:\Users\Denis\Desktop\INDEPENDENT ROLEPLAY\gamemodes\erporiginal.pwn(40462) : warning 215: expression has no effect
C:\Users\Denis\Desktop\INDEPENDENT ROLEPLAY\gamemodes\erporiginal.pwn(40468) : error 022: must be lvalue (non-constant)
C:\Users\Denis\Desktop\INDEPENDENT ROLEPLAY\gamemodes\erporiginal.pwn(40468) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
Was da falsch wie fixxe ich das?