Hey, ich möchte nen stock benutzen um direkt alles zu reseten wenn ein Spieler connect.
Aber ich kriege errors.
Das die Errors: (Die Zeilen sind alle im stock selber)
C:\Users\Spiele\Desktop\Bad Life Server\gamemodes\badlife.pwn(273) : error 017: undefined symbol "playerid"
C:\Users\Spiele\Desktop\Bad Life Server\gamemodes\badlife.pwn(274) : error 017: undefined symbol "playerid"
C:\Users\Spiele\Desktop\Bad Life Server\gamemodes\badlife.pwn(275) : error 017: undefined symbol "playerid"
C:\Users\Spiele\Desktop\Bad Life Server\gamemodes\badlife.pwn(276) : error 017: undefined symbol "playerid"
C:\Users\Spiele\Desktop\Bad Life Server\gamemodes\badlife.pwn(277) : error 017: undefined symbol "playerid"
C:\Users\Spiele\Desktop\Bad Life Server\gamemodes\badlife.pwn(278) : error 017: undefined symbol "playerid"
C:\Users\Spiele\Desktop\Bad Life Server\gamemodes\badlife.pwn(279) : error 017: undefined symbol "playerid"
Hier OnPlayerConenct:
public OnPlayerConnect(playerid)
{
resetPlayer();
return 1;
}
Hier der stock:
stock resetPlayer()
{
PlayerInfo[playerid][p_id] = 0;
PlayerInfo[playerid][pLoggedIn] = false;
PlayerInfo[playerid][pLevel] = 0;
PlayerInfo[playerid][pMoney] = 0;
PlayerInfo[playerid][pKills] = 0;
PlayerInfo[playerid][pDeaths] = 0;
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
return 1;
}