ich erhalte folgende errors un warnings bei folgenden zeilen:
test.pwn(57) : warning 202: number of arguments does not match definition
test.pwn(57) : warning 202: number of arguments does not match definition
test.pwn(57) : error 033: array must be indexed (variable "Name")
test.pwn(137) : error 033: array must be indexed (variable "Account")
test.pwn(138) : error 047: array sizes do not match, or destination array is too small
test.pwn(146) : warning 203: symbol is never used: "playerid"
test.pwn(160) : warning 203: symbol is never used: "SpielerInfo"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
für zeile 57:
stock SpielerName(playerid)
{
new Name[MAX_PLAYER_NAME];
Name = GetPlayerName(playerid);
return 1;
}
für zeile 137-138
stock CreateAccount(playerid,pass[])
{
new Account[128];
Account = PlayerAccount(playerid);
setString:Account("Passwort",pass);
setFloat:Account("posX",1512.0344);
setFloat:Account("posY",-1674.6484);
setFloat:Account("posZ",14.0469);
setFloat:Account("posA",268.5105);
return 1;
}
//der stock für playeraccount
stock PlayerAccount(playerid)
{
new Acc[128];
format(Acc,sizeof(Acc), "/Accounts/%s", SpielerName(playerid));
return 1;
}
was ist da nicht in ordnung ?