20.03.2011, 15:44
Hello Guys, I have a piece of code, But i doesn't work properly:
The Problem is in this line:
it Should check if the playername is equel with the vOwner of the Vehicle.. But it doesn't.
Maybe one of you knows how to fix this.
Greetings,
Gforcez
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, -1, " if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)"); // Tis will be called
if(strcmp(VehicleInfo[vehicleid][vOwner], PlayerInfo[playerid][pName], false)) // But this Won't
{
SendClientMessage(playerid, -1, "strcmp(VehicleInfo[vehicleid][vOwner], PlayerInfo[playerid][pName], false)");
Код:
if(strcmp(VehicleInfo[vehicleid][vOwner], PlayerInfo[playerid][pName], false))
Maybe one of you knows how to fix this.
Greetings,
Gforcez