Erreur 28
#1

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
Reply
#2

UP pleases
Reply
#3

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;
}
Reply
#4

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;
}
Reply
#5

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"
Reply
#6

Use the variable anywhere!
Reply
#7

Код 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)
Reply
#8

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
Reply
#9

Код 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;
}
Reply
#10

Plueases what is the problиme ? :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)