error 028: invalid subscript (not an array or too many subscripts): -
Sirop - 18.05.2016
Hi,
Sorry for my english
Код:
enum hoIDinfo { hoID, };
enum HotelInfo
{
Owner[25],
Price,
Bought,
Float: extX,
Float: extY,
Float: extZ,
Float: intX,
Float: intY,
Float: intZ,
intVW,
intW,
Locked,
Text3D: Label,
};
Код HTML:
(14530) : error 028: invalid subscript (not an array or too many subscripts): "hoIDinfo"
(14530) : warning 215: expression has no effect
(14530) : error 001: expected token: ";", but found "]"
(14530) : error 029: invalid expression, assumed zero
(14530) : fatal error 107: too many error messages on one line
Код HTML:
stock HotelPath(ho)
{
new hotel[64], hote = ho;
hotel = hoIDinfo[hoID] +1;
format(hotel, 30, "Hotels/%d.ini", hotel);
hoIDinfo[hoID] ++; // multiplying
return hotel;
}
What is the probleme pls +1
Re: Erreur 28 -
Sirop - 18.05.2016
UP pleases
Re: Erreur 28 -
F1N4L - 18.05.2016
This is incorrect!
hoIDinfo = Enum
[hoID] = Value of enum
Код:
enum hoIDinfo { hoID }; // enum
new Variable[hoIDinfo]; // variable
Код:
stock HotelPath(ho)
{
new hotel[64], hote = ho;
hotel = Variable[hoID] +1;
format(hotel, 30, "Hotels/%d.ini", hotel);
Variable[hoID] ++; // multiplying
return hotel;
}
Re: Erreur 28 -
Sirop - 19.05.2016
I insert the code and when I warning I remove the host but still this error.
Код HTML:
stock HotelPath(ho)
{
new Variable[hoIDinfo]; // variable
new hotel[64], hote = ho;
ho = Variable[hoID] +1;
//Variable[hoID] +1;
format(hotel, 30, "Hotels/%d.ini", hotel);
Variable[hoID] ++; // multiplying
return hotel;
}
Re: Erreur 28 -
Sirop - 20.05.2016
UP the problиme
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14534) : warning 204: symbol is assigned a value that is never used: "hote"
Re: Erreur 28 -
VVWVV - 20.05.2016
Use the variable anywhere!
Re: Erreur 28 -
Sirop - 20.05.2016
Код HTML:
stock HotelPath(ho)
{
new Variable[hoIDinfo]; // variable
new Variable[64], hote = ho;
hote = Variable[hoID] +1;
//Variable[hoID] +1;
format(hote, 30, "Hotels/%d.ini", hote);
Variable[hoID] ++; // multiplying
return hote;
}
Код HTML:
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14546) : error 035: argument type mismatch (argument 1)
Re: Erreur 28 -
Naruto_Emilio - 20.05.2016
I dont understand why theres a ho on your function, if you're not using it, first you did
hote = ho; then hote = variable[hoid] + 1; which means hote = ho is useless
Re: Erreur 28 -
Sirop - 20.05.2016
Код HTML:
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14313) : error 017: undefined symbol "hote"
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14543) : error 017: undefined symbol "hote"
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14543) : error 017: undefined symbol "Variable"
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14543) : warning 215: expression has no effect
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14543) : error 001: expected token: ";", but found "]"
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14543) : fatal error 107: too many error messages on one line
Код HTML:
stock HotelPath(ho)
{
hote = Variable[hoID] +1;
format(hote, 30, "Hotels/%d.ini", hote);
Variable[hoID] ++; // multiplying
return hote;
}
Re: Erreur 28 -
Sirop - 20.05.2016
Plueases what is the problиme ? :/