SA-MP Forums Archive
Problem - 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: Problem (/showthread.php?tid=382077)



Problem - UnknownGamer - 01.10.2012

pawn Код:
C:\Users\matthew\Desktop\New folder\gamemodes\larp.pwn(32980) : error 033: array must be indexed (variable "-unknown-")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Is the error.

Code is

pawn Код:
new numberplatenew = "NUMPLATE";
CarInfo[car][cPlate] = numberplatenew;
Anybody spot what the error is?


Re: Problem - Passout - 01.10.2012

Код:
new numberplatenew[8];
format(numberplatenew,sizeof(numberplatenew),"NUMPLATE");
try that im not sure if that will work


Re: Problem - UnknownGamer - 01.10.2012

error: error 006: must be assigned to an array


Re: Problem - Gangster-rocks - 02.10.2012

Lol thats all
pawn Код:
new str[100]
format(str,sizeof(str),"%s",numberplatenew);
CarInfo[car][cPlate] = str;