SA-MP Forums Archive
What this array is meant for?? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What this array is meant for?? (/showthread.php?tid=264769)



What this array is meant for?? - Ronaldo_raul™ - 27.06.2011

Like i -
pawn Код:
new LastUpdate[10] = "30-6-11";
I get this error-
pawn Код:
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(408) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Can anyone tell me what is [10] here ..and also help to fix this error....


Re: What this array is meant for?? - Vince - 27.06.2011

Uhm, it's your script, so you should know. :') The 10 determines how much characters (letters, if you wish) the array can hold.
However the warning doesn't seem to have anything to do with that particular line.


Re: What this array is meant for?? - Ronaldo_raul™ - 27.06.2011

Quote:
Originally Posted by Vince
Посмотреть сообщение
Uhm, it's your script, so you should know. :') The 10 determines how much characters (letters, if you wish) the array can hold.
However the warning doesn't seem to have anything to do with that particular line.
well i didn't understood..... how can i fix the warning?