help please don't ignore this (+REP)
#1

hi i have this warning and i want fix it
Код:
warning 204: symbol is assigned a value that is never used: "barrel"
here is the line :
Код:
barrel = CreatePlayerObject(playerid,1225,BarrelX[playerid]-0.5,BarrelY[playerid],BarrelZ[playerid]-0.5,0,-1,-1,-1);
Reply
#2

The variable barrel has never used, you only assign a value.

To fix it, use the variable or remove it.
Reply
#3

this warning comes when you give or assign value to a variable and never make use of it the code remove the variable or check if you missed its usage somewhere (if you dont want it now you can simply remove it or comment it)
Reply
#4

add
Quote:

new barrel;

in your script lines.
Reply
#5

i added the
Код:
new barrel;
and 
new Float:BarrelX[MAX_PLAYERS], Float:BarrelY[MAX_PLAYERS], Float:BarrelZ[MAX_PLAYERS];
help please
Reply
#6

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
i added the
Код:
new barrel;
and 
new Float:BarrelX[MAX_PLAYERS], Float:BarrelY[MAX_PLAYERS], Float:BarrelZ[MAX_PLAYERS];
help please
you just ignored what i said

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
this warning comes when you give or assign value to a variable and never make use of it the code remove the variable or check if you missed its usage somewhere (if you dont want it now you can simply remove it or comment it)
Reply
#7

did you define the
Quote:

Float:BarrelX[MAX_PLAYERS], Float:BarrelY[MAX_PLAYERS], Float:BarrelZ[MAX_PLAYERS];

? If no then It won't work for sure.
you'll have to define the Float:BarrelX,Float:BarrelY,Float:BarrelZ.
and make sure you have used the function in right way.
Quote:

CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float: DrawDistance = 0.0)

Reply
#8

The warning is because you don't used the variable in any function or anything you ONLY assign a value.

Example:

PHP код:
DestroyPlayerObject(playeridbarrel); 
Reply
#9

thanks thanks and thanks ! Mexicano xD mexican peoples are helpfull.
and i know them. i will come to mexico soon
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)