need to fix 2 errors please help - 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: need to fix 2 errors please help (
/showthread.php?tid=486150)
need to fix 2 errors please help -
Acres - 07.01.2014
hey guys i got problem with these 2 erros also im not sure whats the problem can be in...
Код:
C:\Users\Erik\Desktop\Iconik-Gamings\gamemodes\IGamings.pwn(4723) : error 047: array sizes do not match, or destination array is too small
Код:
C:\Users\Erik\Desktop\Iconik-Gamings\gamemodes\IGamings.pwn(145) : error 029: invalid expression, assumed zero
Line: 4723:
Код:
tmp = strtok(cmdtext, idx);
Line: 145:
Код:
if(PlayerInfo[i][pAdmin] == 1))
Re: need to fix 2 errors please help -
Sawalha - 07.01.2014
Line:145
pawn Код:
if(PlayerInfo[i][pAdmin] == 1)
the other line, set tmp[256]; is the correct other not
Re: need to fix 2 errors please help -
Ace155 - 07.01.2014
Guy above answered before me
Re: need to fix 2 errors please help -
CutX - 07.01.2014
error 029: invalid expression, assumed zero
already is tellin' you that you messed up somewhere with the expressions.
and you did, see:
if(PlayerInfo[i][pAdmin] == 1
))
that one
) bracket is too much on that line.
moving on to your next error.
error 047: array sizes do not match, or destination array is too small
it tells you that some size is too small, probably the size of
tmp is too small
just fix these 2 things and you're good 2 go