Alles anzeigenMachs am besten einfach so^^
stock LoadPlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
new plName[MAX_PLAYER_NAME];
GetPlayerName(playerid,plName,sizeof(plName));
PlayerInfo[playerid][pKey] = mysql_GetInt("accounts", "Key", "Name", plName);
PlayerInfo[playerid][pLevel] = mysql_GetInt("accounts", "Level", "Name", plName);
PlayerInfo[playerid][pAdmin] = mysql_GetInt("accounts", "Admin", "Name", plName);
PlayerInfo[playerid][pZiviSpawn] = mysql_GetInt("accounts", "ZiviSpawn", "Name", plName);
}
return 1;
}
Danke bekomme nun
Zitat(51904) : error 076: syntax error in the expression, or invalid function call
(56889) : error 017: undefined symbol "pName"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
56889: GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
51904: if(!strcmp(inputtext, mysql_ReturnPasswort(SpielerName), true))