SA-MP Forums Archive
Help fixing errors (rep+) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help fixing errors (rep+) (/showthread.php?tid=593113)



Help fixing errors (rep+) - OMonger - 01.11.2015

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!


Re: Help fixing errors (rep+) - J0sh... - 01.11.2015

Show the HouseInfo enum.


Re: Help fixing errors (rep+) - OMonger - 01.11.2015

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]; 



Re: Help fixing errors (rep+) - prineside - 01.11.2015

Show us how you defined "id" variable, please


Re: Help fixing errors (rep+) - OMonger - 01.11.2015

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

PHP код:
    new id HouseCount



Re: Help fixing errors (rep+) - prineside - 01.11.2015

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.


Re: Help fixing errors (rep+) - OMonger - 02.11.2015

Thanks guys, rep+'d both.