06.05.2013, 07:55
Hey! I have a job drug smuggler and I want to create that after you are done with your work, you wil have to wait 2 minutes to do it again, and time will be saved in your account. This is part of my command:
And after I try to compile, I get this error:
invalid subscript (not an array or too many subscripts): "pSmugglerWait"
So I guess my variable pSmugglerWait has to be array, I know how to create it buy I dont know how to set so array will be saved to user account using dini. Please help me.
Код:
enum
pinfo
{
pSmugglerWait
}
if( (gettime()- pSmugglerWait[playerid]) > 120 ) // error here
{
.
.
.
pSmugglerWait[playerid] = gettime();
}
invalid subscript (not an array or too many subscripts): "pSmugglerWait"
So I guess my variable pSmugglerWait has to be array, I know how to create it buy I dont know how to set so array will be saved to user account using dini. Please help me.

