Help me to fix this warning please
#1

hey guys could you help me this warning?

Код:
C:\Users\Erik\Desktop\Uus kaust (2)\gamemodes\WoS.pwn(367) : warning 209: function "OnDialogResponse" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код:
 Line 367: }
Reply
#2

Hey, your public should look like this:

pawn Код:
public MyCallback(param1,params2)
{
    // Your codes
    return 1; // You should return a value at the end.
}
Hope i've helped u
Reply
#3

Look that https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#4

add one more

Код:
return 1;
at the end of OnDialogResponse
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)