-
Posts
82 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by AndrewTG01
-
-
T.C am rezolvat.
-
Problema intalnita (descriere): Am un server RolePlay si wanted-ul nu se salveaza , am incercat sa iau si de pe alte gamemode-uri pe care se salva wanted-ul , nici unul nu a mers nu stiu ce sa mai fac, va rog sa ma ajutati. Stiu ca nu ar trebui sa fac asa ceva , imi cer scuze dar nu mai am nici o idee cum sa rezolv problema asta.
Ero(area / rile) / warning-(ul / urile): Nu sunt erori in pawno
Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da -
Am rezolvat!
-
Problema intalnita (descriere): Primesc niste erori la compilare si nu le dau de cap.
Ero(area / rile) / warning-(ul / urile):E:\servere\server\gamemodes\gfs.pwn(7385) : error 001: expected token: "-string end-", but found "-identifier-" E:\servere\server\gamemodes\gfs.pwn(7385) : warning 215: expression has no effect E:\servere\server\gamemodes\gfs.pwn(7385) : error 001: expected token: ";", but found "-string-" E:\servere\server\gamemodes\gfs.pwn(7385) : warning 215: expression has no effect E:\servere\server\gamemodes\gfs.pwn(7385) : warning 215: expression has no effect E:\servere\server\gamemodes\gfs.pwn(7385) : error 001: expected token: ";", but found ")" E:\servere\server\gamemodes\gfs.pwn(7385) : fatal error 107: too many error messages on one line
Liniile de cod / sursa / script-ul(obligatoriu):format(loginstring,sizeof(loginstring),"{FFFFFF}Hello "COLOR_GREEN"%s{FFFFFF}, please login.",loginname);
Imagini / Video (optional): Nu cred ca este nevoie.
Ati incercat sa rezolvati singur?: Da -
Nu mi-a mai dat erorile , dar cand folosesc comanda ma da in alt loc
Problema Rezolvata -
Problemă întâlnită (descriere): Am incercat sa fac un random jail spawn si imi da erorile de mai jos pe care nu stiu cum sa le rezolv
Ero(area / rile) / warning-(ul / urile):[pawn]error 032: array index out of bounds (variable "JailSpawns")error 032: array index out of bounds (variable "JailSpawns")[/pawn]
Liniile de cod / sursa / script-ul: [pawn]SetPlayerPos(playa, JailSpawns[rand][0], JailSpawns[rand][1], JailSpawns[rand][2], JailSpawns[rand][3], JailSpawns[rand][4], JailSpawns[rand][5], JailSpawns[rand][6],JailSpawns[rand][7], JailSpawns[rand][8], JailSpawns[rand][9], JailSpawns[rand][10], JailSpawns[rand][11]);[/pawn] [pawn]new Float:JailSpawns[12][3] = {
{1607,-1566.4,214},
{1599.9,-1566.6,214},
{1593.4,-1566.9,214},
{1586.4,-1567,214},
{1579.7,-1567,214},
{1572.7,-1566.6,214},
{1572.7,-1599.6,214},
{1579.2,-1599,214},
{1586.2,-1599.7,214},
{1592.8,-1599.3,214},
{1600.1,-1599.8,214},
{1607,-1600.1,214}};[/pawn]
Imagini / Video (optional): -
Aţi încercat să rezolvaţi singur?: Da
Problema House,Bizz,SBizz 3d text label
in Arhivă probleme
Posted · Edited by AndrewTG01
Problema intalnita (descriere): Daca dau /buybiz , text-ul de vanzare nu dispare si se amesteca cu cel care apare cand am cumparat biz-ul
Ero(area / rile) / warning-(ul / urile): Nu sunt erori sau warning-uri
Liniile de cod / sursa / script-ul(obligatoriu):
for(new h = 0; h < sizeof(SBizzInfo); h++) { if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ])) { if(SBizzInfo[h][sbOwned] == 1) { format(string, sizeof(string), "{FFFFFF}%s\n{0066CC}Owner : %s\nExtortion by : %s\nEntrance Fee : $%d Level : %d \nto enter type /enter",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]); } else { format(string, sizeof(string), "{FFFFFF}%s\n{0066CC}This Business is for sale\nCost: $%d Level : %d \nto buy this Business type /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]); } Create3DTextLabel(string, 0x0080FFFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 0); return 1; } } for(new h = 0; h < sizeof(HouseInfo); h++) { if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez])) { if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { format(string, sizeof(string), "This House is owned by %s\nLevel : %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]); } else { format(string, sizeof(string), "This House is owned by %s\nRent: $%d Level : %d\nType /rentroom to rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]); } Create3DTextLabel(string, 0x0080FFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 0); return 1; } else { format(string, sizeof(string), "This House is for sale\nDiscription: %s \nCost: $%d\n Level : %d\nto buy this house type /buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]); } Create3DTextLabel(string, 0x0080FFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 0); return 1; } } for(new h = 0; h < sizeof(BizzInfo); h++) { if(PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ])) { if(BizzInfo[h][bOwned] == 1) { format(string, sizeof(string), "%s\nOwner : %s\nExtortion by : %s\nEntrance Fee : $%d Level : %d \nto enter type /enter",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded]); } else { format(string, sizeof(string), "%s\nThis Business is for sale\nCost: $%d Level : %d \nto buy this Business type /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]); } Create3DTextLabel(string, 0x0080FFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 40.0, 0, 0); return 1; } }
Imagini / Video (optional): http://imgur.com/a/qhBGj
Ati incercat sa rezolvati singur?: Da