problem on scripting - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: problem on scripting (
/showthread.php?tid=417252)
problem on scripting -
blackdragon1 - 20.02.2013
Код:
(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:y, Float: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!
Re: problem on scripting -
Faisal_khan - 20.02.2013
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
defined in your script(not in a callback).