Hilfe ich bekomm da immer Errors und ich weiß enfach net was ich tun soll (Bin Anfänger ).
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Test.pwn(354) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Test.pwn(355) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Test.pwn(355 -- 356) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Test.pwn(356) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Test.pwn(356 -- 357) : error 028: invalid subscript (not an array or too many subscripts): "fexist"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Test.pwn(356 -- 357) : 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.
Das is der script dazu:
public OnPlayerConnect(playerid)
{
new string[256];
format(string, sizeof(string), "%s.ini", plname),
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "Einwohnermeldeamt: Daten gefunden ");
SendClientMessage(playerid, COLOR_WHITE, "Einwohnermeldeamt: Du kannst dich mit /Login [Passwort] anmelden ");
return 1;
}
else
{
gPlayerAccount[playerid] = 0;
SendClientMessage(playerid,COLOR_YELLOW," Einwohnermeldeamt: Fülle das Formular aus /register [passwort]");
return 1;
}
return 1;
}