Little strcmp problem
#1

Hello Guys, I have a piece of code, But i doesn't work properly:

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)");
The Problem is in this line:

Код:
        if(strcmp(VehicleInfo[vehicleid][vOwner], PlayerInfo[playerid][pName], false))
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
Reply


Messages In This Thread
Little strcmp problem - by Gforcez - 20.03.2011, 15:44
Re: Little strcmp problem - by JaTochNietDan - 20.03.2011, 15:49
Re: Little strcmp problem - by ricardo178 - 20.03.2011, 15:51
Re: Little strcmp problem - by Gforcez - 20.03.2011, 16:06
Re: Little strcmp problem - by Mike Garber - 20.03.2011, 16:27
Re: Little strcmp problem - by admantis - 20.03.2011, 16:49
Re: Little strcmp problem - by maramizo - 20.03.2011, 17:05
Re: Little strcmp problem - by Mike Garber - 20.03.2011, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)