C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(2753) : error 006: must be assigned to an array
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(2754) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
new test[64][7];
if(PlayerInfo[playerid][pItem1] == 1) { test[0] = "Test String"; }
if(PlayerInfo[playerid][pItem2] == 0) { test[1] = "EMPTY"; }
if(PlayerInfo[playerid][pItem3] == 0) { test[2] = "EMPTY"; }
if(PlayerInfo[playerid][pItem4] == 0) { test[3] = "EMPTY"; }
if(PlayerInfo[playerid][pItem5] == 0) { test[4] = "EMPTY"; }
if(PlayerInfo[playerid][pItem6] == 0) { test[5] = "EMPTY"; }
if(PlayerInfo[playerid][pItem7] == 0) { test[6] = "EMPTY"; }
new test[1][6];
if(PlayerInfo[playerid][pKicks] == 1)
format(test[0], sizeof(test[0]), "EMPTY");
You don't have to use 2-dimensional arrays for a single string. It could simply be test[64]. Also, I suggest you to use strcpy to copy strings than using format.
|