hey,
ich wollte mal fragen was ich hier falsch gemacht hab, ich bekomme ein warning:
Zitat
(1084) : warning 209: function "ocmd_releasedrugs" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
hier der befehl:
ocmd:test(playerid, params[])
{
if(GetPVarInt(playerid,"Test")==25)
{
SetPVarInt(playerid, "Test",0);
SendClientMessage(playerid, COLOR_GELB,"Du erhälst $100!");
}
else
{
if(GetPVarInt(playerid,"Test")==50)
{
SetPVarInt(playerid, "Test",0);
SendClientMessage(playerid, COLOR_GELB,"Du erhälst $150!");
}
else
{
if(GetPVarInt(playerid,"Test")==75)
{
SetPVarInt(playerid, "Test",0);
SendClientMessage(playerid, COLOR_GELB,"Du erhälst $200!");
}
else
{
if(GetPVarInt(playerid,"Test")==100)
{
SetPVarInt(playerid, "Test",0);
SendClientMessage(playerid, COLOR_GELB,"Du erhälst $100!");
}
return 1;
}
}
}
} //hier wird das warning angezeigt
eure hilfe währe echt nett
danke im vorraus
MFG
Marco