(305) : error 028: invalid subscript (not an array or too many subscripts): "GetPlayerName"
(305) : warning 215: expression has no effect
(305) : warning 215: expression has no effect
(305) : warning 215: expression has no effect
(305) : error 001: expected token: ";", but found ")"
(305) : error 029: invalid expression, assumed zero
(305) : 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.
stock Register(playerid,key[])
{
new Spieler[64];
new Sname[MAX_PLAYER_NAME];
GetPlayerName[playerid,Sname,sizeof(Sname));
format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",Sname);
dini_Create(Spieler);
dini_Set(Spieler,"Passwort",key);
SendClientMessage(playerid,GRUN,"Du hast dich erfolgreich registriert");
return 1
}