array sizes do not match, or destination array is too small
#5

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
This way ?
PHP код:
new Neco[10] = {0,...};//work fine
public OnFilterScriptInit()
{
    
Neco = {0,0,0,0,0,0,0,0,0,0};//work fine too, but its hard way
    
Neco[10] = {0,...};//Like this?
    
return 1;

I tried and there is no error message.
Something like that, bud error message is

C:\Users\A\Desktop\samp037\filterscripts\test.pwn( : error 032: array index out of bounds (variable "Neco")
C:\Users\A\Desktop\samp037\filterscripts\test.pwn( : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)