SA-MP Forums Archive
Help! warning 209: - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help! warning 209: (/showthread.php?tid=302811)



Help! warning 209: - adios1 - 10.12.2011

Help. I got this error

warning 209: function "OnPlayerStateChange" should return a value




Someone help me please?


Re: Help! warning 209: - Dark_Kostas - 10.12.2011

before the last closing bracket, add "return 1;"


Re: Help! warning 209: - adios1 - 10.12.2011

I still got warning


Re: Help! warning 209: - AstonDA-G - 10.12.2011

pawn Код:
if(Vehicle == Ops2) {
if(strcmp(PlayerName,"Ips[MDZ]",true)) {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, CODE, message);
}
}
return 1;
}
return 1; //Returning a value for OnPlayerStateChange here
}
public OnVehicleSpawn(vehicleid) blabla



Re: Help! warning 209: - adios1 - 10.12.2011

Oops. sorry I mistaken. I have no warnings now.. THanks a lot bud! +rep !