05.07.2010, 16:54 
	
	
	
		I got a problem with strcmp..
My Code:
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...
	
	
	
	
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.
}



 now it always say: You have no keys for this car.