problem on scripting
#1

Код:
(29453) : warning 208: function with tag result used before definition, forcing reparse
(6390) : warning 219: local variable "ID" shadows a variable at a preceding level
28455) : warning 219: local variable "ID" shadows a variable at a preceding level
(28511) : warning 219: local variable "ID" shadows a variable at a preceding level
(28547) : warning 219: local variable "ID" shadows a variable at a preceding level
(28814) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
Line:

29453:
PHP код:
stock Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance
6390:
PHP код:
        new ID GetClosetHouseIntID(playerid); 
28455:
PHP код:
        new ID,string[64],file[32]; 
28511:
PHP код:
        new ID GetClosetHouseIntID(playerid),string[256],Slot,Ammo
28547:
PHP код:
        new ID GetClosetHouseIntID(playerid),string[256],Slot
28814:
PHP код:
    new id GetClosetHouseIntID(playerid),string[128]; 
Help guyz.

thanks!
Reply
#2

Try forwarding this:
pawn Код:
stock Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
Like
pawn Код:
forward Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
You already have
pawn Код:
new ID;
defined in your script(not in a callback).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)