SA-MP Forums Archive
[HELP]/nitro - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]/nitro (/showthread.php?tid=262742)



[HELP]/nitro - Horrible - 19.06.2011

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


Re: [HELP]/nitro - Wesley221 - 19.06.2011

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


Re: [HELP]/nitro - Horrible - 19.06.2011

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)


Re: [HELP]/nitro - Wesley221 - 19.06.2011

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;
        }
    }
}



Re: [HELP]/nitro - Horrible - 19.06.2011

TY man!