13.08.2014, 12:36
In first place, Sorry for my bad english. 
I'm trying to do a command to spawn cars, but, and I can compile the GM, but, when i try to do the command it does nothing.
The pawn code is:
Ahn, another thing, i want to compare the resultes from a variable to a fix value
Is this correct?

I'm trying to do a command to spawn cars, but, and I can compile the GM, but, when i try to do the command it does nothing.
The pawn code is:
Код:
CMD:spawnar(playerid, params[]) { new idcarro, cor1, cor2; if (sscanf(params, "iii", idcarro, cor1, cor2)) { if (idcarro >= 612) if (idcarro <=399) { new message[40], Float:x, Float:y, Float:z, Float:a; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, a); format(message, sizeof(message), "Spawnaste um %s, conduz com cuidado!", idcarro); new vehicleid = CreateVehicle(idcarro, x+3, y, z, a, cor1, cor2, 0); PutPlayerInVehicle(playerid, vehicleid, 0); SendClientMessage(playerid, 0xFF0000FF, message); } else SendClientMessage(playerid, 0xFFFFFFFF, "Uso:"COL_NICERED"/spawnar [VehicleID/Nome do Carro/Mota] [Cor1] [Cor2]"); } return 1; }
Код:
if (idcarro >= 612) if (idcarro <=399)
