hab es jetzt so:
Oben,new IsAdmin[MAX_PLAYERS];
enum Save
{
Passwort[128],
Geld,
Score,
Admin,
};
CONNECT:
SendClientMessage(playerid, 0x33CCFFAA, "Willkommen bei SA:MP 0.3 Server");
SendClientMessage(playerid, 0xFFFFFFAA, "Dein Account wurde wiedererkannt.");
SendClientMessage(playerid, 0xFFFFFFAA, "Du kannst dich jetzt einloggen.");
SendClientMessage(playerid, 0xFFFFFFAA, "Benutze dazu /login [passwort].");
GivePlayerMoney(playerid,dini_Int(save,"Geld"));
SetPlayerScore(playerid, dini_Int(save,"Score"));
if(dini_Int(save,"Admin") = 1);
IsAdmin[playerid]=1;
}
G:\Programme\SA-MP Server\gamemodes\DM.pwn(36) : warning 211: possibly unintended assignment
G:\Programme\SA-MP Server\gamemodes\DM.pwn(36) : error 022: must be lvalue (non-constant)
G:\Programme\SA-MP Server\gamemodes\DM.pwn(36) : warning 215: expression has no effect
G:\Programme\SA-MP Server\gamemodes\DM.pwn(36) : error 001: expected token: ";", but found ")"
G:\Programme\SA-MP Server\gamemodes\DM.pwn(36) : error 029: invalid expression, assumed zero
G:\Programme\SA-MP Server\gamemodes\DM.pwn(36) : 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.
Zeile 36if(dini_Int(save,"Admin") = 1);