help error 001,... - 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: help error 001,... (
/showthread.php?tid=491827)
help error 001,... -
sn0p - 01.02.2014
Код:
\mysqlGM.pwn(735) : warning 219: local variable "Name" shadows a variable at a preceding level
\mysqlGM.pwn(735) : warning 204: symbol is assigned a value that is never used: "Name"
\mysqlGM.pwn(1376) : error 028: invalid subscript (not an array or too many subscripts): "hInfo"
\mysqlGM.pwn(1376) : warning 215: expression has no effect
\mysqlGM.pwn(1376) : error 001: expected token: ";", but found "]"
\mysqlGM.pwn(1376) : error 029: invalid expression, assumed zero
\mysqlGM.pwn(1376) : fatal error 107: too many error messages on one line
line:
Код:
if(PlayerToPoint(MAX_DISTANCE_TO_PROP, playerid, hInfo[i][iconx], hInfo[i][icony], hInfo[i][iconz]))
all stock:
Код:
stock GetHouseID(playerid)
{
for(new i=0; i<MAX_HOUSES; i++)
{
if(PlayerToPoint(MAX_DISTANCE_TO_PROP, playerid, hInfo[i][iconx], hInfo[i][icony], hInfo[i][iconz]))
{
return i;
}
}
return -255;
}
How to fix it?