11.11.2009, 13:27
okay I just began to script 2 days ago so I am not that pro at this stuff 
public OnPlayerCommandText(playerid, cmdtext[])
{
if strcmp("/cars",true)
{
if (IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(GetPlayerVehicleID(playerid),2129.75 , 1449.55, 12.46);
} else {
SetPlayerPos(playerid,2129.75, 1449.55, 12.46);
}
}
return 0;
}
I get error 035: argument type mismatch (argument 2) when I add that, what could be the problem?

public OnPlayerCommandText(playerid, cmdtext[])
{
if strcmp("/cars",true)
{
if (IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(GetPlayerVehicleID(playerid),2129.75 , 1449.55, 12.46);
} else {
SetPlayerPos(playerid,2129.75, 1449.55, 12.46);
}
}
return 0;
}
I get error 035: argument type mismatch (argument 2) when I add that, what could be the problem?