Man soll die Droge, Qualitätsstufe und die Menge angeben und dies soll dann entsprechend genutzt werden. Irgendwie habe ich leider einen Error dabei:
enum Inventar_Daten
{
//Bedarf Inventar
Float:PolosChickenwings,
Float:FreddysMargarithaPizza,
Float:Sprunk,
//Illegales Inventar
Float:Cannabis[101],
Float:CrystalMeth[101],
Float:Heroin[101],
Float:Cocaine[101],
//Normales Inventar
pMarkeOfficer,
pSateliteHandy,
pUniformOfficer,
};
else if(!sscanf(params,"sdf",produkt,qualitaet,menge))
{
for(new i = 0; i<MAX_INVENTAR; i++)
{
if(!strcmp(produkt, InventarName[playerid][Inventar_Name:i]) /*&& !isnull(produkt) && !isnull(InventarName[playerid][Inventar_Name:i])*/)
{
if(Inventar[playerid][Inventar_Daten:i] >= menge)
{
Inventar[playerid][Inventar_Daten:i][qualitaet] -= menge;
Info[playerid][RpPoints] += InventarRPPlus[playerid][RPPlus_Daten:i];
return 1;
}
else SCM(playerid,rot,"Nicht genügend dabei!");
}
if(i == MAX_INVENTAR)
{
SCM(playerid,rot,"Produkt nicht bekannt!");
return 1;
}
}
}
C:\Program Files\Grand Theft Auto San Andreas\gamemodes\bigcitylife.pwn(216) : warning 215: expression has no effect
C:\Program Files\Grand Theft Auto San Andreas\gamemodes\bigcitylife.pwn(216) : error 001: expected token: ";", but found "["
C:\Program Files\Grand Theft Auto San Andreas\gamemodes\bigcitylife.pwn(216) : error 029: invalid expression, assumed zero
C:\Program Files\Grand Theft Auto San Andreas\gamemodes\bigcitylife.pwn(216) : warning 215: expression has no effect
C:\Program Files\Grand Theft Auto San Andreas\gamemodes\bigcitylife.pwn(216) : error 001: expected token: ";", but found "]"
C:\Program Files\Grand Theft Auto San Andreas\gamemodes\bigcitylife.pwn(216) : 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.
Alles anzeigen