pawn Код:
#include <a_samp>
//#pragma tabsize 0
#include "../include/gl_common.inc"
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256+1];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp( cmd, "/v", true ) == 0 )
{
new Float:X, Float:Y, Float:Z;
new tmp[256];
new created_vehicle_id;
tmp = strtok( cmdtext, idx );
GetPlayerPos( playerid, X, Y, Z );
created_vehicle_id = CreateVehicle( strval(tmp), X+2, Y+2, Z, 0, 0, 0, -1 );
new msg[100];
format(msg,sizeof(msg),"Created vehicle ID: %d",created_vehicle_id);
SendClientMessage(playerid,0x00FF00FF,msg);
return 1;
}
return 0;
}
You do not have tabbed it. So try this one.
(sry for bad english)