PDA

View Full Version : Help! warning 209:


adios1
10/12/2011, 04:45 PM
Help. I got this error

warning 209: function "OnPlayerStateChange" should return a value

http://i40.tinypic.com/2mopgtg.png


Someone help me please?

Dark_Kostas
10/12/2011, 04:47 PM
before the last closing bracket, add "return 1;"

adios1
10/12/2011, 04:48 PM
I still got warning

AstonDA-G
10/12/2011, 04:49 PM
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

adios1
10/12/2011, 04:50 PM
Oops. sorry I mistaken. I have no warnings now.. THanks a lot bud! +rep !