SA-MP Forums Archive
Little warning with vehicle spawner command - 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: Little warning with vehicle spawner command (/showthread.php?tid=401746)



Little warning with vehicle spawner command - FL3GM4 - 23.12.2012

warning:

Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(2684) : warning 204: symbol is assigned a value that is never used: "vID"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код:
CMD:cv(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
	{
	    new
	        mID,
	        vID,
	        cl1,
	        cl2,
			Float:x, Float:y, Float:z, Float:ang;

	    if(sscanf(params, "iii", mID, cl1, cl2)) return SendClientMessage(playerid, 0xAADD00AA, "{FFFFFF}Koristi:{AADD00} /c(reate)v(ehicle) <ID modela vozila> <boja 1> <boja 2>");
	    else
	    {
	        GetPlayerPos(playerid, x, y, z);
	        GetPlayerFacingAngle(playerid, ang);

		    vID = CreateVehicle(mID, x + 2.0, y, z, ang, cl1, cl2, 86400);

	    }
	}
	else SendClientMessage(playerid, 0xFF0000AA, "Ne mozes koristiti tu komandu.");
	return 1;
}



Re: Little warning with vehicle spawner command - park4bmx - 23.12.2012

You either use the variable "vID" or remove it