11.02.2016, 12:02
Hello, I've scripted a function, to make a checkpoint and a 3d text label in same time, before using the function there are no warnings, but when I used the function at OnGameModeInit, I got two warnings!
PHP код:
stock CreateDynamicCPLabel(DynamicCP, Text3D:textlabel, thetext[100], thecolor, Float:x, Float:y, Float:z, Float:size, worldid, interiorid, playerid, Float:streamdistance, thetestlos)
{
DynamicCP = CreateDynamicCP(x, y, z, size, worldid, interiorid, playerid, streamdistance);
textlabel = CreateDynamic3DTextLabel(thetext, thecolor, x, y, z, streamdistance, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, thetestlos, worldid, interiorid, playerid, streamdistance);
return 1;
}
Код:
C:\Program Files\MyServer\pawno\include\required/stocks.inc(428) : warning 204: symbol is assigned a value that is never used: "textlabel" C:\Program Files\MyServer\pawno\include\required/stocks.inc(427) : warning 204: symbol is assigned a value that is never used: "DynamicCP" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.