warnings - 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: warnings (
/showthread.php?tid=661845)
warnings -
GameOvr - 16.12.2018
Код:
C:\Users\User\Desktop\Scripts\CKS.pwn(1465) : error 028: invalid subscript (not an array or too many subscripts): "entercp"
C:\Users\User\Desktop\Scripts\CKS.pwn(1465) : warning 215: expression has no effect
C:\Users\User\Desktop\Scripts\CKS.pwn(1465) : error 001: expected token: ";", but found "]"
C:\Users\User\Desktop\Scripts\CKS.pwn(1465) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Scripts\CKS.pwn(1465) : fatal error 107: too many error messages on one line
pawn Код:
enum HouseInfo
{
Float:entercp[3],
Float:exitcp[3],
Float:enterpos[3],
Float:exitpos[3],
Float:spawn[3],
int,
bool:howned,
hteam[30],
hteamid
}
new HOUSEINFO[][HouseInfo] =
{
{{1298.6082,-799.6471,84.1406},{1298.9232,-796.0192,1084.0078},{1298.7500,-793.8243,1084.0078},{1299.1433,-801.4569,84.1406},{1301.9410,-787.5530,1084.0078},5}, // 1
};
//line GENTERCP[c] = CreateDynamicCP(HOUSEINFO[c][entercp[0]], HOUSEINFO[c][entercp[1]], HOUSEINFO[c][entercp[2]], 1);
help plz
Re: warnings -
cuber - 16.12.2018
Wth are you doing with the tags
Re: warnings -
GameOvr - 16.12.2018
Sorry, I didn't understand
about what tags are you talking ?
Re: warnings -
Threshold - 17.12.2018
PHP код:
GENTERCP[c] = CreateDynamicCP(HOUSEINFO[c][entercp][0], HOUSEINFO[c][entercp][1], HOUSEINFO[c][entercp][2], 1);
Also, you should remove the comma at the end of the line:
PHP код:
new HOUSEINFO[][HouseInfo] =
{
{{1298.6082,-799.6471,84.1406},{1298.9232,-796.0192,1084.0078},{1298.7500,-793.8243,1084.0078},{1299.1433,-801.4569,84.1406},{1301.9410,-787.5530,1084.0078},5} // 1
};
Re: warnings -
GameOvr - 17.12.2018
I already fixed that btw thanks for ur concern