Hallo, ich habe folgenden Code:
Pickup[MAX_PICKUPS][pid] = dini_IntSet(Format,pickupID);
Pickup[MAX_PICKUPS][style] = dini_IntSet(Format,Style);
Pickup[MAX_PICKUPS][funktion] = dini_IntSt(Format,Funktion);
Pickup[MAX_PICKUPS][ptext] = dini_Set(Format,pText);
Jedoch bekomme ich dafür folgende Errors:
C:\Users\pc\Desktop\Server\gamemodes\Pickup.pwn(233) : error 032: array index out of bounds (variable "Pickup")
C:\Users\pc\Desktop\Server\gamemodes\Pickup.pwn(234) : error 032: array index out of bounds (variable "Pickup")
C:\Users\pc\Desktop\Server\gamemodes\Pickup.pwn(235) : error 032: array index out of bounds (variable "Pickup")
C:\Users\pc\Desktop\Server\gamemodes\Pickup.pwn(236) : error 032: array index out of bounds (variable "Pickup")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Hier der ganze Befehl:
ocmd:pickup(playerid,params[])
{
new pickupID,Style,Funktion,pText[128],pName[128],Format[20];
if(sscanf(params,"dddss",pickupID,Style,Funktion,pText,pName))return SendClientMessage(playerid,-1,"/pickup [ID] [Style] [Funktion] [Text] [PickupName]");
format(Format,sizeof(Format),"Pickups/%s.ini",pName);
Pickup[MAX_PICKUPS][pid] = dini_IntSet(Format,pickupID);
Pickup[MAX_PICKUPS][style] = dini_IntSet(Format,Style);
Pickup[MAX_PICKUPS][funktion] = dini_IntSt(Format,Funktion);
Pickup[MAX_PICKUPS][ptext] = dini_Set(Format,pText);
return 1;
}
MfG