kann mir hier jemand helfen?
test\pawno\rl.pwn(40451) : error 017: undefined symbol "SpielerInfo"
rl.pwn(40451) : warning 215: expression has no effect
rlpwn(40451) : error 001: expected token: ";", but found "]"
rl.pwn(40451) : error 029: invalid expression, assumed zero
pwn(40451) : 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.
und so steht es im scrip
if(strcmp(cmd, "/givemats", true) == 0)
{
if (SpielerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /givemats [playerid/PartOfName] [amount]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /givemats [playerid/PartOfName] [amount]");
return 1;
}
new playa;
GetPlayerName(playa, sendername, sizeof(sendername));
playa = ReturnUser(tmp);
moneys = strval(tmp);
SpielerInfo[giveplayerid][pMats] = moneys;
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "AdmWarning: %s hat %s %d Materialien gegeben.", sendername,giveplayer,moneys);
ABroadCast(COLOR_YELLOW,string,1);
}
}
return 1;
}