hallo hier einmal die errors
(1393) : warning 213: tag mismatch
(1399) : warning 213: tag mismatch
(1399) : error 032: array index out of bounds (variable "PlayerInfo")
(1402) : warning 213: tag mismatch
(1402) : warning 213: tag mismatch
(1528) : warning 213: tag mismatch
(1528) : error 032: array index out of bounds (variable "PlayerInfo")
(1548) : warning 213: tag mismatch
(1548) : error 032: array index out of bounds (variable "PlayerInfo")
(1568) : warning 213: tag mismatch
(1568) : error 032: array index out of bounds (variable "PlayerInfo")
(1588) : warning 213: tag mismatch
(1588) : error 032: array index out of bounds (variable "PlayerInfo")
(1650) : error 017: undefined symbol "pPassword"
(1652) : error 017: undefined symbol "pPassword"
(1659) : warning 213: tag mismatch
(1660) : warning 213: tag mismatch
(1660) : error 032: array index out of bounds (variable "PlayerInfo")
(1661) : warning 213: tag mismatch
(1662) : warning 213: tag mismatch
(1662) : error 032: array index out of bounds (variable "PlayerInfo")
(1663) : warning 213: tag mismatch
(1668) : warning 213: tag mismatch
(1668) : error 032: array index out of bounds (variable "PlayerInfo")
(1845) : error 017: undefined symbol "pPassword"
(1848) : warning 213: tag mismatch
(1849) : warning 213: tag mismatch
(1850) : warning 213: tag mismatch
(1850) : error 032: array index out of bounds (variable "PlayerInfo")
(1851) : warning 213: tag mismatch
(1884) : warning 213: tag mismatch
(1884) : error 032: array index out of bounds (variable "PlayerInfo")
(1885) : warning 213: tag mismatch
(2029) : warning 203: symbol is never used: "Player"
alle zeilen sind zuviel am besten ihr sagt mir welche zeile ihr habe wolt und dann oste ich
enum spieler_daten
{
Float:lastx,Float:lasty,Float:lastz,
eingeloggt
}
enum pInfo
{
AdminLevel,
pKills,
pCash,
pPasswort [256],
pLeader,
score,
pDeaths,
Float:lastx,Float:lasty,Float:lastz,
}
new Player[pInfo];
new PlayerInfo[MAX_PLAYERS][spieler_daten];
MfG
Kiddy_Noobtuber
-
-
enum spieler_daten
{
Float:lastx,Float:lasty,Float:lastz,
eingeloggt,
}
enum pInfo
{
AdminLevel,
pKills,
pCash,
pPasswort [256],
pLeader,
score,
pDeaths,
Float:lastx,Float:lasty,Float:lastz,
}
new Player[pInfo];
new PlayerInfo[MAX_PLAYERS][spieler_daten];und wozu noch die pInfo wenn du spieler_daten hast
-
Mach mal das Komma hinter Float:lastz, <------- weg
//[...]
score,
pDeaths,
Float:lastx,Float:lasty,Float:lastz,//<--------
}
//[...] -
Probiers mal so:
enum spieler_daten
{
Float:lastx,Float:lasty,Float:lastz,
eingeloggt,
}
new PlayerInfo[MAX_PLAYERS][spieler_daten];
enum pInfo
{
AdminLevel,
pKills,
pCash,
pPasswort [256],
pLeader,
score,
pDeaths,
Float:lastxx,Float:lastyy,Float:lastzz,
}
new Player[pInfo];Mit freundlichen Grüßen
Humen -
dann habe ich noch 13 fehler
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1393) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1399) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1399) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1402) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1402) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1528) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1528) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1548) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1548) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1568) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1568) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1588) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1588) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1650) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1652) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1659) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1660) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1660) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1661) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1662) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1662) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1663) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1668) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1668) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1845) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1848) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1849) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1850) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1850) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1851) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1884) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1884) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1885) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(2029) : warning 203: symbol is never used: "Player" -
Die Fehler sind aber nicht in deinen geposteten Zeilen oder?
-
ne habe jetzt nuzr 3 errors die ich net weg kriege
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1406) : warning 215: expression has no effect
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1655) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1657) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1850) : error 017: undefined symbol "pPassword"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase3 Errors.
zeile 1650-1660
key = ini_GetKey(Data);if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
if( strcmp( key , "Score" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][score] = strval( val ); }
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
}
fclose(UserFile);
gPlayerLogged[playerid] = 1;
gPlayerAccount[playerid] = 1;
new kills = PlayerInfo[playerid][score]; -
Poste mal die Fehlerzeilen
Mit freundlichen Grüßen
Humen -
pPasswort [256],
ZitatC:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1655) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1657) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1850) : error 017: undefined symbol "pPassword"
DU erstellst die Variable pPasswort und später frägst du 3x pPassword ab. Falsch geschrieben. Der erste Error kann man so nicht sagen, musst die Zeile 1406 hier posten und auch noch bissle drum rum. -
Stimmt Sc4uT, darauf hab ich zu wenig geachtet
Mit freundlichen Grüßen
Humen -
-
und noch die zeile 1399 - 1412
public OnVehicleSpawn(vehicleid)
{
return 1;
}public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}public OnPlayerText(playerid, text[])
{
return 1;
}1859- 1840
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
fclose(hFile);
}
}
}
return 1;
}stock ini_GetKey( line[] )
{
new keyRes[128];
keyRes[0] = 0;
if ( strfind( line , "=" , true ) == -1 ) return keyRes;
strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
return keyRes;
} -
Also dein Error ist hier oder?
public OnVehicleDeath(vehicleid, killerid)
{
return 1;//HIER?
}Wenn ja Lösch am besten das
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
Raus und Fertig.Mit freundlichen Grüßen
Humen -
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1393) : warning 215: expression has no effect
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1638) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1640) : error 017: undefined symbol "pPassword"
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1833) : error 017: undefined symbol "pPassword"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase3 Errors.noch 3 errors 1 warning ach diue erros sind weg
-
pPassword is nich definiert
-
C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1393) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase1 Warning.
noch den warning
public OnPlayerDeath(playerid, killerid, reason)
{
new kills = PlayerInfo[playerid][pKills];
SetPlayerScore(playerid, kills);
PlayerInfo[playerid][pDeaths] += 1;
GivePlayerMoney(killerid,1000);
PlayerInfo[killerid][pKills] + 1;
TextDrawHideForPlayer(playerid,txtTimeDisp);
return 1;
}
sollte da drin sein -
Und welche Zeile is das einmal posten
-
Zeile?!
-
habe garde edite muste nur einaml post vordir lesen
-
PlayerInfo[killerid][pKills] += 1; -
Sieht man auch so ;D
Code
Alles anzeigen[pwn]public OnPlayerDeath(playerid, killerid, reason) { new kills = PlayerInfo[playerid][pKills]; SetPlayerScore(playerid, kills); PlayerInfo[playerid][pDeaths] += 1; GivePlayerMoney(killerid,1000); PlayerInfo[killerid][pKills] + 1; // <------ Hier fehlt ein Gleichzeichen, einfach nur so ein plus gibt es nihct. PlayerInfo[killerid][pKills] += 1; TextDrawHideForPlayer(playerid,txtTimeDisp); return 1; } [/pwn]
-