Alles anzeigen
Du musst strcmp benutzten.
Also:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name);
if(!strcmp(name,"Pätzold",true,sizeof(name)) {
// team blabla
}
Wenn ich es so einfüge:
GetPlayerName(playerid,name,sizeof(name);
if(!strcmp(name,"Pätzold",true,sizeof(name))
{
gTeam[playerid] = admin;
}
Bekomme ich eroors:
E:\Programme\Grand Theft Auto San Andreas\gamemodes\BlaZe.pwn(271) : error 021: symbol already defined: "GetPlayerName"
E:\Programme\Grand Theft Auto San Andreas\gamemodes\BlaZe.pwn(272) : error 010: invalid function or declaration