SA-MP Forums Archive
nos - 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)
+--- Thread: nos (/showthread.php?tid=537231)



nos - FishyZ - 14.09.2014

Errors
Quote:

C:\Users\Azozy\Desktop\Pawno\gamemodes\tdm.pwn(416 ) : warning 203: symbol is never used: "nitro"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Line where I used 'nitro'
Quote:

if(strcmp("/nos", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid,-250);
GetPlayerVehicleID(playerid);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SendClientMessage(playerid,COLOR_BLUE,"You have bought a nitro for $250");
format(nitro, sizeof(nitro), "%s has bought a nitro for $250!!",GetVehicleid(vehicleid));
SendClientMessageToAll(COLOR_GRAY,nos);
return 1;
}

String
Quote:

new nitro[70];




Re: nos - iOxide - 14.09.2014

pawn Код:
if(strcmp("/nos", cmdtext, true, 10) == 0)
{
    GivePlayerMoney(playerid,-250);
    GetPlayerVehicleID(playerid);
    AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    SendClientMessage(playerid,COLOR_BLUE,"You have bought a nitro for $250");
    new name[24], string[64];
    GetPlayerName(playerid, name, 24);
    format(string, sizeof(string), "%s has bought a nitro for $250!!", name);
    SendClientMessageToAll(COLOR_GRAY, string);
    return 1;
}