CMD error
#1

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;
}
Reply
#2

Hey dude, this variable 'Distance' is already defiend, remove this var.
Reply
#3

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
Reply
#4

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.
Reply
#5

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
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)