Help :G
#2

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)
Reply


Messages In This Thread
Help :G - by okjonni - 25.01.2014, 17:27
Re: Help :G - by Jacapo - 25.01.2014, 18:02
Re: Help :G - by okjonni - 25.01.2014, 18:47

Forum Jump:


Users browsing this thread: 2 Guest(s)