03.02.2014, 16:03
Hello guys. I'm kind of know the Pawno language but When it's come for this command I can't do anything only errors.
I'm just trying when I'm do /createhouse It's will create a house like I set in the SavedHouse (scriptfiles).
But there's alot of errors.
(24433) : error 001: expected token: ">", but found "++"
(24433) : error 029: invalid expression, assumed zero
(24439) : error 047: array sizes do not match, or destination array is too small
(24449) : error 047: array sizes do not match, or destination array is too small
(24484) : error 017: undefined symbol "sendername"
(24485) : error 035: argument type mismatch (argument 2)
(24486) : error 017: undefined symbol "MAX_HOUSES"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
Those are the lines...
(I'm really can't control it..) sorry. :S
I'm just trying when I'm do /createhouse It's will create a house like I set in the SavedHouse (scriptfiles).
But there's alot of errors.
(24433) : error 001: expected token: ">", but found "++"
(24433) : error 029: invalid expression, assumed zero
(24439) : error 047: array sizes do not match, or destination array is too small
(24449) : error 047: array sizes do not match, or destination array is too small
(24484) : error 017: undefined symbol "sendername"
(24485) : error 035: argument type mismatch (argument 2)
(24486) : error 017: undefined symbol "MAX_HOUSES"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
Those are the lines...
(I'm really can't control it..) sorry. :S
Код HTML:
new idx<MAX_HOUSES, idx++; { // Getting House Setup new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); //Making House HouseInfo[idx][hName]= "Property For Sale!"; HouseInfo[idx][hLock] = 1; HouseInfo[idx][hHours] = 10; HouseInfo[idx][hPrice] = 15000; HouseInfo[idx][hEnterX] = X; HouseInfo[idx][hEnterY] = Y; HouseInfo[idx][hEnterZ] = Z; HouseInfo[idx][hExitX] = 2496.098876; HouseInfo[idx][hExitY] = -1692.503051; HouseInfo[idx][hExitZ] = 1014.742187; HouseInfo[idx][hOwner] = "The State"; HouseInfo[idx][hOwned] = 0; HouseInfo[idx][hRentable] = 0; HouseInfo[idx][hRent] = 1; HouseInfo[idx][hInterior] = 2; HouseInfo[idx][hMoney] = 0; HouseInfo[idx][hGun][0] = 0; HouseInfo[idx][hGunAmmo][0] = 0; HouseInfo[idx][hWeed] = 0; HouseInfo[idx][hCocaine] = 0; HouseInfo[idx][hCrack] = 0; HouseInfo[idx][hArmour] = 0; HouseInfo[idx][hType] = 0; HouseInfo[idx][hEInt] = 0; HouseInfo[idx][hEWorld] = 0; HouseInfo[idx][hTime] = 0; HouseInfo[idx][hGun][1] = 0; HouseInfo[idx][hGunAmmo][1] = 0; HouseInfo[idx][hGun][2] = 0; HouseInfo[idx][hGunAmmo][2] = 0; HouseInfo[idx][hGun][3] = 0; HouseInfo[idx][hGunAmmo][3] = 0; HouseInfo[idx][hComd] = 0; HouseInfo[idx][hGun][4] = 0; HouseInfo[idx][hGunAmmo][4] = 0; HouseInfo[idx][hGun][5] = 0; HouseInfo[idx][hGunAmmo][5] = 0; HouseInfo[idx][hGun][6] = 0; HouseInfo[idx][hGunAmmo][6] = 0; HouseInfo[idx][hGun][7] = 0; HouseInfo[idx][hGunAmmo][7] = 0; HouseInfo[idx][hGun][8] = 0; HouseInfo[idx][hGunAmmo][8] = 0; HouseInfo[idx][hGun][9] = 0; HouseInfo[idx][hGunAmmo][9] = 0; format(string, sizeof(string), "{FF0000}[Admin Warn]:{FF6347} %s has created house ID %d.", sendername, idx); SendAdminMessage(COLOR_LIGHTRED, 1, string); idx = MAX_HOUSES; } return 1; }