too many subscripts
#1

Can help me to solve this problem ... No matter how I try I can not give you head
: error 028: invalid subscript (not an array or too many subscripts): "Viptext"
PHP код:
                        if(Viptext[playerid] == 0)
            {
                
vText =CreateObject(19327, -2597.0762, -2630.4270, -5.3536, -87.699990.4001, -97.1805);
                
SetObjectMaterialText(vTexttext050"Arial"2510xFFFFFFFF01);
                
AttachObjectToVehicle(vTextvehicleid0.0, -1.90.3270.00.00.0);
                
Viptext[playerid] = 1;
            } 
Reply
#2

028 - invalid subscript (not an array or too many subscripts): identifier
The subscript operators “[” and “]” are only valid with arrays. The number of square bracket pairs may not exceed the number of dimensions of the array.
Reply
#3

i dont know...
Reply
#4

Show us where you defined Viptext.
Reply
#5

Viptext is most likely an item in enumeration that is used for a player-array so that'd make it:
pawn Код:
array_name_here[playerid][Viptext]
Reply
#6

new Viptext;
Reply
#7

Код:
new Viptext[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)