01.02.2017, 16:00
Sorry for the title but wasn't sure about a good one..
I also tried new test[7][64] which made the error go away but I wasn't getting the full text, I was receiving only this "Test Strin"
PHP код:
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.
PHP код:
new test[64][7];
PHP код:
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"; }