This is my problem too.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu else if (strcmp(cmd, "!getcar", true) == 0) {
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!strlen(tmp)) SendClientMessage(playerid,COLOR_GREEN, "USAGE: !getcar [VehicleID]");
else if(IsVehicleOwnedShared(strval(tmp),gPlayers[playerid]) == -1) SendClientMessage(playerid,COLOR_GREEN, "You do not have the keys for that vehicle.");
else {
new Float:Angle;
GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid,Angle);
if(!Angle) SendClientMessage(playerid,COLOR_GREEN,"Error: Invalid vehicle!");
SetVehiclePos(strval(tmp),x+3,y+3,z,Angle);
format(szMsg,sizeof(szMsg),"Spawning vehicle:[ %d ]",strval(tmp));
SendClientMessage(playerid,COLOR_GREEN,szMsg);
}
return 1;
}