Hey ich habe versucht einen bool für den Adienst zu machen habe dabei Probleme weil ich noch nie damit gearbeitet habe.
new bool:adienst = false;
ocmd:adienst(playerid,params[])
{
if(adienst = false)
{
adienst = true;
SetPlayerColor(playerid,BRAUN);
SetPlayerHealth(playerid,0x7F800000);
}
if(adienst = true)
{
adienst = false;
SetPlayerHealth(playerid,100);
}
}
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(2203) : warning 211: possibly unintended assignment
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(2209) : warning 211: possibly unintended assignment
C:\Users\Jonas\Desktop\Selfmade x)\gamemodes\ttttt.pwn(2211) : warning 204: symbol is assigned a value that is never used: "adienst"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.