Need help with Strcmp :S
#1

I got a problem with strcmp..

My Code:

Код:
if(strcmp(GetName(playerid), dini_Get(string, "Owner"), true))
{
if(CarInfo[CarID][Engine] == 0)
{
//Start engine
CarInfo[CarID][Engine] = 1;//This should happen if the name of the player = the owner of the car.
TogglePlayerControllable(playerid, 1);//This should happen if the name of the player = the owner of the car.
}
}
else
{
SendClientMessage(playerid, Red, "You have no keys for this car.");//And this should happen if the name of the player is not the owner.
}
And now my problem: All players can start the engine. How can I fix it ? Only the carowner should be able to start the engine...
Reply


Messages In This Thread
Need help with Strcmp :S - by [Nino] - 05.07.2010, 16:54
Re: Need help with Strcmp :S - by woot - 05.07.2010, 16:56
Re: Need help with Strcmp :S - by DeathOnaStick - 05.07.2010, 17:00
AW: Need help with Strcmp :S - by [Nino] - 05.07.2010, 17:06
Re: Need help with Strcmp :S - by dice7 - 05.07.2010, 17:07
Re: Need help with Strcmp :S - by -Sneaky- - 05.07.2010, 17:11
AW: Need help with Strcmp :S - by [Nino] - 05.07.2010, 17:25
Re: Need help with Strcmp :S - by dice7 - 05.07.2010, 17:29
AW: Need help with Strcmp :S - by [Nino] - 05.07.2010, 17:37
Re: Need help with Strcmp :S - by -Sneaky- - 05.07.2010, 17:43

Forum Jump:


Users browsing this thread: 5 Guest(s)