public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid==5)
{
if(response==1)
{
switch(listitem)
{
case 0 :
{
GivePlayerWeapon(playerid,362,1000);
GivePlayerMoney(playerid,1);
}
case 2 :
{
GivePlayerWeapon(playerid,362,1000);
GivePlayerMoney(playerid,1);
}
case 3 :
{
GivePlayerWeapon(playerid,362,1000);
GivePlayerMoney(playerid,1);
}
case 4 :
{
GivePlayerWeapon(playerid,362,1000);
GivePlayerMoney(playerid,1);
}
}
}
return 1;
}
Error Code:
C:\Dokumente und Einstellungen\Dima\Desktop\San Andreas\Kram\gamemodes\kjg.pwn(322) : warning 209: function "OnDialogResponse" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Habe doch das return 1; gesetzt, was will das ding ???