PDA

View Full Version : Problem


UnknownGamer
01/10/2012, 11:36 PM
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


new numberplatenew = "NUMPLATE";
CarInfo[car][cPlate] = numberplatenew;


Anybody spot what the error is?

Passout
01/10/2012, 11:48 PM
new numberplatenew[8];
format(numberplatenew,sizeof(numberplatenew),"NUMPLATE");

try that im not sure if that will work

UnknownGamer
01/10/2012, 11:53 PM
error: error 006: must be assigned to an array

Gangster-rocks
02/10/2012, 11:09 AM
Lol thats all
new str[100]
format(str,sizeof(str),"%s",numberplatenew);
CarInfo[car][cPlate] = str;