hey
ich bekomme diese errors net weg
Code
C:\Dokumente und Einstellungen\Timo van Doornick\Desktop\GTA Head Server 0.3a R8\gamemodes\script.pwn(16465) : error 028: invalid subscript (not an array or too many subscripts): "cGun"
C:\Dokumente und Einstellungen\Timo van Doornick\Desktop\GTA Head Server 0.3a R8\gamemodes\script.pwn(16465) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Timo van Doornick\Desktop\GTA Head Server 0.3a R8\gamemodes\script.pwn(16465) : error 001: expected token: ";", but found "]"
C:\Dokumente und Einstellungen\Timo van Doornick\Desktop\GTA Head Server 0.3a R8\gamemodes\script.pwn(16465) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Timo van Doornick\Desktop\GTA Head Server 0.3a R8\gamemodes\script.pwn(16465) : fatal error 107: too many error messages on one line
enum CInfo
{
cDrogen,
cMats,
cGun[13],
cAmmo[13],
Float:cRustung,
};
new CarInfo[MAX_VEHICLES][CInfo];
OnPlayerCommandText
........
if(strcmp(x_put,"waffen",true) == 0)
{
new weapons[13][2];
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
CarInfo[car][cGun[i]] += weapons[i][0];//diese
CarInfo[car][cAmmo[i]] += weapons[i][1];
}
ResetPlayerWeapons(playerid);
}
......
kann mir wer helfen???
mfg