command !getcar BUG
i type !getcar 130
but it's not spawn
and quit the game go in again the spawn car will appear
Sorry for my bad english
[pawn] else if (strcmp(cmd, "!getcar", true) == 0){
tmp = strtok(cmdtext, idx);
new len = strlen(tmp);
new Float:angle;
if (!len) { format(szMsg,sizeof(szMsg),"Usage: !getcar <car/id>",tmp);
SendClientMessage(playerid, COLOR_GREY, szMsg);return 1;}
newvar = strval(tmp);
if (GetPlayerMoney(playerid) >= 1800){
if (newvar < 130 || newvar > 239) {
format(szMsg,sizeof(szMsg),"Unable to find %s.",tmp);
SendClientMessageToAll(COLOR_GREY, szMsg);
} else {
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,angle);
newvar = CreateVehicle(newvar,x,y,z,angle,-1,-1);
PutPlayerInVehicle(playerid,newvar);
PutDirectlyInVehicle(playerid,newvar);
format(szMsg,sizeof(szMsg),"Found %s.",tmp);
}
} else {
SendClientMessage(playerid,COLOR_GREEN,"You don't have 1800 dollars!");
}
return 1;[/pawn]