[HELP]/nitro
#1

i want /nitro and i use zcmd

Quote:

CMD:nitro(playerid, params[])
{
#pragma unused params
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You're not in any vehicle");
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFF0000FF, "You must be the driver to use this command.");
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);

AddVehicleComponent(vehicle, 1010);
return 1;
}
}
}

than pawno say this
Quote:

C:\Documents and Settings\User\Desktop\Server SA-MP OPEN BETA(ary)\gamemodes\tombodos.pwn(719) : error 017: undefined symbol "vehicle"
C:\Documents and Settings\User\Desktop\Server SA-MP OPEN BETA(ary)\gamemodes\tombodos.pwn(717) : warning 204: symbol is assigned a value that is never used: "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

please help i want it works with ZCMD
---------------------------------------------------------------------------------------------------------------
good pawno?help me (reply it)
[HELP]need /back and /v command
Reply
#2

pawn Код:
CMD:nitro(playerid, params[])
{
#pragma unused params
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You're not in any vehicle");
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFF0000FF, "You must be the driver to use this command.");
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);

AddVehicleComponent(vehicleid, 1010);
return 1;
}
}
}
Also, use/add tabs. Would make your FS/GM way more organized
Reply
#3

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
pawn Код:
CMD:nitro(playerid, params[])
{
#pragma unused params
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You're not in any vehicle");
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFF0000FF, "You must be the driver to use this command.");
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);

AddVehicleComponent(vehicleid, 1010);
return 1;
}
}
}
Also, use/add tabs. Would make your FS/GM way more organized
i input that code on my gamemode
what is tab?? i dont know (i am new here)
Reply
#4

http://www.plaatjesupload.nl/bekijk/...8455461-80.png

Thats a tab..

Edit:
It would look like this
pawn Код:
CMD:nitro(playerid, params[])
{
#pragma unused params
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You're not in any vehicle");
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFF0000FF, "You must be the driver to use this command.");
        {
            new vehicleid;
            vehicleid = GetPlayerVehicleID(playerid);

            AddVehicleComponent(vehicleid, 1010);
            return 1;
        }
    }
}
Reply
#5

TY man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)