Thread: error help
View Single Post
Old 21/08/2019, 04:57 PM   #1
KIRAB
Little Clucker
 
Join Date: Jul 2019
Posts: 3
Reputation: 0
Default error help

hi am i am new to scripting i was making a gamemode but cannot solve that error for 1 week
Code:
D:\3.7\GTA San Andreas\server\gamemodes\ireg.pwn(102) : error 028: invalid subscript (not an array or too many subscripts): "vInfo"
.pwn(102) : warning 215: expression has no effect
.pwn(102) : error 001: expected token: ";", but found "]"
.pwn(102) : error 029: invalid expression, assumed zero
.pwn(102) : fatal error 107: too many error messages on one line
here is the script
Code:
stock Rank(playerid)
{
    new str[156];
    if(vInfo[playerid][pVIP] == 0) str = ("Player");
    else if(vInfo[playerid][pVIP] == 1) str = ("Donator Level 1");
    else if(vInfo[playerid][pVIP] == 2) str = ("Donator Level 2");
    else if(vInfo[playerid][pVIP] == 3) str = ("Donator Level 3");
    return str;
}
Please help
KIRAB is offline   Reply With Quote