Help fixing errors (rep+)
#1

PHP код:
C:\Users\\Desktop\games\samp scripts\Roleplay (0.3.7)\gamemodes\roleplay.pwn(1181) : warning 213tag mismatch
C
:\Users\\Desktop\games\samp scripts\Roleplay (0.3.7)\gamemodes\roleplay.pwn(1188) : warning 213tag mismatch
C
:\Users\\Desktop\games\samp scripts\Roleplay (0.3.7)\gamemodes\roleplay.pwn(1197) : warning 213tag mismatch 
These are the lines of the errors:

PHP код:
(1181) if(HouseInfo[id][hOwned] >= 1)
1188)    HouseInfo[id][hOwned] = 1;
1197)Update3DTextLabelText(HouseInfo[id][hPickup],0xFF0000FF,string); //This refers to the command /createhouse which has already created the 3D Text label. Here it is anyway:
/createhouse text label:             
new 
string[84];
format(string,sizeof(string),"Owned: No \nAddress: %i \nPrice: %i"address,price);
Create3DTextLabel(string,0xFF0000FFxyz25.0,0); 
Will rep the person/people who helps!
Reply
#2

Show the HouseInfo enum.
Reply
#3

Quote:
Originally Posted by Jamester
Посмотреть сообщение
Show the HouseInfo enum.
PHP код:
enum hInfo
{
    
Float:hEnterX
    
Float:hEnterY,
    
Float:hEnterZ,
    
Float:hExitX,
Float:hExitZ,
    
Float:hExitY,
    
hInsideInt
    
hInsideVir
    
hOutsideInt,
    
hOutsideVir,
    
hAddress,
    
hLevel,
    
bool:hOwned
    
hOwner[MAX_PLAYER_NAME],
    
hPrice,
    
hPickup
    
Text3D:hIcon,
};
new 
HouseInfo[MAX_HOUSES][hInfo]; 
Reply
#4

Show us how you defined "id" variable, please
Reply
#5

Quote:
Originally Posted by prineside
Посмотреть сообщение
Show us how you defined "id" variable, please
It is defined like so:

PHP код:
    new id HouseCount
Reply
#6

hOwned is defined as bool in hInfo enum, thats an issue.
You can't compare it to number or assign number to it. Remove bool: in enum or replace numbers on your error lines with true or false.
Reply
#7

Thanks guys, rep+'d both.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)