PDA

View Full Version : How can I fix this warning?


KosmasRego
11/11/2011, 10:16 PM
C:\Users\User\Desktop\UCRP 1.1.250\gamemodes\UC-RP.pwn( 9198 ) : warning 209: function "Streamer_OnPlayerEnterCP" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.


I get this warning how can I fix it ? :S

Sascha
11/11/2011, 10:18 PM
add

return 1;

to the end of the callback (infront of the very last - callback ending - } )

KosmasRego
11/11/2011, 10:20 PM
Rep+++ it worked thanks ! :)

Sascha
11/11/2011, 10:23 PM
np and ty