Hallo,
ich wusste leider nicht besser, wie ich das hier betiteln soll :D.
Ich versuche gerade ein Register- und Login-System für mein Script zu machen, aber es kommen immer wieder Errors :
dxtdm.pwn(157) : error 029: invalid expression, assumed zero
dxtdm.pwn(157) : error 029: invalid expression, assumed zero
dxtdm.pwn(157) : warning 215: expression has no effect
dxtdm.pwn(157) : error 001: expected token: ";", but found "]"
dxtdm.pwn(157) : fatal error 107: too many error messages on one line
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYERS],accFormat[128];
GetPlayerName(playerid,pname,sizeof pname);
format(accFormat,sizeof accFormat,"%s.user",pname);
if(fexist(accFormat) && Player[playerid][loggedin]) //<- Zeile 157
{
dini_IntSet(accFormat,"wanted",Player[playerid][wanted]);
dini_IntSet(accFormat,"skin",Player[playerid][skin]);
dini_IntSet(accFormat,"money",GetPlayerMoney(playerid));
dini_IntSet(accFormat,"score",GetPlayerScore(playerid));
dini_FloatSet(accFormat,"lastx",Player[playerid][lastx]);
dini_FloatSet(accFormat,"lasty",Player[playerid][lasty]);
dini_FloatSet(accFormat,"lastz",Player[playerid][lastz]);
}
Player[playerid][loggedin] = 0;
Player[playerid][wanted] = 0;
Player[playerid][skin] = 0;
Player[playerid][lastx] = (0.0);
Player[playerid][lasty] = (0.0);
Player[playerid][lastz] = (0.0);
return 1;
}
Was mache ich da falsch ?
Ich hoffe, ihr könnt mir helfen.