Get rid of annoying warnings
#6

Quote:
Originally Posted by Stevee
Посмотреть сообщение
Okay, the timer was my fault, but I also get this:

Код:
warning 204: symbol is assigned a value that is never used: "RouteText"
But, I do use it, see here:
(snippets taken from script)
pawn Код:
new RouteText[255]; // declaring the variable
    format(RouteText, sizeof(RouteText), TXT_GarbagePickupsLeft, TotalToPickup); // assigning a value
    TextDrawSetString(APlayerData[playerid][MissionText], RouteText); // using the variable
Anyone got an idea why its doing that? Have I done something wrong? (The script still works)
Try this or go less on the [128]
pawn Код:
new RouteText[128]; // declaring the variable
    format(RouteText, sizeof(RouteText), TXT_GarbagePickupsLeft, TotalToPickup); // assigning a value
    TextDrawSetString(APlayerData[playerid][MissionText], RouteText); // using the variable
Reply


Messages In This Thread
Get rid of annoying warnings - by Stevee - 16.06.2012, 00:14
Re: Get rid of annoying warnings - by WillyP - 16.06.2012, 00:16
Re: Get rid of annoying warnings - by Yuryfury - 16.06.2012, 00:21
Re: Get rid of annoying warnings - by iggy1 - 16.06.2012, 00:28
Re: Get rid of annoying warnings - by Stevee - 16.06.2012, 00:29
Re: Get rid of annoying warnings - by tiernantheman - 16.06.2012, 00:38
Re: Get rid of annoying warnings - by Stevee - 16.06.2012, 00:44
Re: Get rid of annoying warnings - by tiernantheman - 16.06.2012, 00:51
Re: Get rid of annoying warnings - by iggy1 - 16.06.2012, 00:59
Re: Get rid of annoying warnings - by Stevee - 16.06.2012, 01:10

Forum Jump:


Users browsing this thread: 1 Guest(s)