Problem
#1

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?
Reply
#2

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

error: error 006: must be assigned to an array
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)