CMD error - 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: CMD error (
/showthread.php?tid=506647)
CMD error -
MrCallum - 13.04.2014
I get this ERROR:
Код:
C:\Users\Gamer\Desktop\PLA\gamemodes\BlackCityRoleplay.pwn(129445) : warning 204: symbol is assigned a value that is never used: "Distance"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
For this code:
Код:
CMD:addcrane(playerid, params[])
{
new Float:X, Float:Y, Float:Z, Float:Distance = 5.0; THIS IS LINE 129445
GetPlayerPos(playerid, X, Y, Z);
CraneObject = CreateDynamicObject(1378, X, Y, Z, 0.00, 0.00, 0.00, -1, -1, -1, 300.0);
SendClientMessage(playerid, COLOR_GREEN, "Crane Deployed");
EditObject(playerid, CraneObject);
return 1;
}
CMD:destroycrane(playerid, params[])
{
DestroyDynamicObject(CraneObject);
SendClientMessage(playerid, COLOR_GREEN, "Crane Destroyed");
return 1;
}
Re: CMD error -
iRaiDeN - 13.04.2014
Hey dude, this variable 'Distance' is already defiend, remove this var.
Re: CMD error -
MrCallum - 13.04.2014
Yes but when im in game and do /addcrane it does not spawn it says Crane deployed so i do /deploycade that does not spawn!
I try spawn things that spawn on other servers with the same script but it does not work!
my friend thinks we have gone over the streamer limit
Re: CMD error -
Konstantinos - 13.04.2014
It's a warning and it wouldn't harm your script. Simply - use it or remove it.
Quote:
Originally Posted by iRaiDeN
Hey dude, this variable 'Distance' is already defiend, remove this var.
|
No, it's not. If it was, then it would give another warning.
Re: CMD error -
MrCallum - 13.04.2014
Yes but when im in game and do /addcrane it does not spawn it says Crane deployed so i do /deploycade that does not spawn!
I try spawn things that spawn on other servers with the same script but it does not work!
my friend thinks we have gone over the streamer limit
Re: CMD error -
iRaiDeN - 13.04.2014
Quote:
Originally Posted by Konstantinos
It's a warning and it wouldn't harm your script. Simply - use it or remove it.
No, it's not. If it was, then it would give another warning.
|
yes sorry my worng, this warning say, you don't use with this var in the script, use with this var.