/car command not working
#1

Well I am trying to transfer a /car command from SeifAdmin to my script, because I need it for something on the script to work.... here is the command

pawn Код:
CMD:car(playerid, params[])
{
    if(DMZone[playerid] == 0)
    {
        new string[256];
        new car = GetVehicleModelIDFromName(tmp);
        if(isnull(params))
        return SendClientMessage(playerid, COLOR_GREY, "USAGE: /car [vehicleid|name] [color1] [color2]"), true;
        new color1 = strval(tmp);
        new color2 = strval(tmp);

        new Float:X,Float:Y,Float:Z,Float:A;
        GetPlayerPos(playerid, X,Y,Z);
        GetPlayerFacingAngle(playerid, A);
        X += (5 * floatsin(-A, degrees));
        Y += (5 * floatcos(-A, degrees));
        new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 600000000);
        format(string, sizeof(string), "Vehicle %s(%d) spawned.", VehNames[GetVehicleModel(carid)-400], carid);
        SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    if(DMZone[playerid] == 1) return SendClientMessage(playerid, COLOR_RED,"ERROR: You are in a DM Zone");
    return 1;
}
Remember this is transfered from Seif Admin to here. I get these 3 errors

Код:
\gamemodes\FD.pwn(3100) : error 017: undefined symbol "tmp"
\gamemodes\FD.pwn(3103) : error 017: undefined symbol "tmp"
\gamemodes\FD.pwn(3104) : error 017: undefined symbol "tmp"
Can someone please help me
Reply


Messages In This Thread
/car command not working - by Swyft™ - 23.06.2012, 16:23
Respuesta: /car command not working - by Chris1337 - 23.06.2012, 16:31
Re: /car command not working - by Swyft™ - 23.06.2012, 16:36
Re: /car command not working - by igal4576 - 23.06.2012, 16:36
Respuesta: /car command not working - by Chris1337 - 23.06.2012, 16:39
Re: /car command not working - by Swyft™ - 23.06.2012, 16:42
Respuesta: /car command not working - by Chris1337 - 23.06.2012, 16:47
Re: /car command not working - by Swyft™ - 23.06.2012, 16:50
Respuesta: /car command not working - by Chris1337 - 23.06.2012, 16:58
Re: /car command not working - by Swyft™ - 23.06.2012, 17:09

Forum Jump:


Users browsing this thread: 4 Guest(s)