23.09.2009, 22:06
I dont know know if any one else has asked this already but I have a question. I am having problems with using strcmp I dont really know how to use it because it doesnt seem to be working for me. None of my commands are working. This is what I have.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/car", cmdtext, true) == 0)
{
CreateVehicle(506, 0, 0, 0, 0, -1, -1, 0);
return 1;
}
return 0;
}
I am thinking that this should spawn a car. The car is the super gt and Im guessing its supposed to spawn infront of me. If anyone can help me out that would be great. Also if anyone needs more information I can give more if they need it.
Thanks.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/car", cmdtext, true) == 0)
{
CreateVehicle(506, 0, 0, 0, 0, -1, -1, 0);
return 1;
}
return 0;
}
I am thinking that this should spawn a car. The car is the super gt and Im guessing its supposed to spawn infront of me. If anyone can help me out that would be great. Also if anyone needs more information I can give more if they need it.
Thanks.