[Pomoc] Label za kucu,biz,sbiz

Započeo [Samp-School]Vaskeâ„¢, Septembar 03, 2012, 19:56:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTA RP EDIT
Detaljan opis problema: Napravio sam labelove za kuce bizove i sbizove al mi izbacuje neke erore :(
ERORI:

C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(25) : error 017: undefined symbol "sbInfo"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(25) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(26) : error 017: undefined symbol "HouseInfo"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(27) : error 017: undefined symbol "BizzInfo"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(1264) : error 021: symbol already defined: "SBizzInfo"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(2662) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(7146) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(7155) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9341) : warning 204: symbol is assigned a value that is never used: "shealth"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9340) : warning 204: symbol is assigned a value that is never used: "local"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9339) : warning 204: symbol is assigned a value that is never used: "virworld"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9338) : warning 204: symbol is assigned a value that is never used: "intir"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9318) : warning 204: symbol is assigned a value that is never used: "smrti"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9317) : warning 204: symbol is assigned a value that is never used: "wanted"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9314) : warning 204: symbol is assigned a value that is never used: "hapsenja"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9313) : warning 204: symbol is assigned a value that is never used: "zlocini"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9312) : warning 204: symbol is assigned a value that is never used: "ubistava"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9311) : warning 204: symbol is assigned a value that is never used: "osiguranje"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(9310) : warning 204: symbol is assigned a value that is never used: "kazne"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(10652) : error 017: undefined symbol "PropertyString"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(10652) : error 017: undefined symbol "PropertyString"
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(10652) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\SKRIPTA GTA RP\GTARP\GTARP\gamemodes\gtarp.pwn(10652) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

DEO SKRIPTE:

for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"Kuca na PRODAJU! \n ID kuce: %d \n Cena: $%d \n Opis: %s \n Level: %d\n/buyhouse",HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],55, 0, 1);
}
if(HouseInfo[h][hOwned] == 1)
{
   format(PropertyString,sizeof(PropertyString),"KUCA JE ZAUZETA! \n Vlasnik: %s \n ID kuce: %d \n Renta: $%d \n Opis: %s \n/househelp",HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
Create3DTextLabel(string1,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],55, 0, 1);
AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
            format(PropertyString,sizeof(PropertyString),"Biznis na prodaju! \n %s \n Biznis ID: %d \n Cena: $%d \n Level: %d \n/buybiz",BizzInfo[h][bMessage], BizzInfo[h][bVirWorld], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(string1,0x8361FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],55, 0, 1);
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
if(BizzInfo[h][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n Firma ID: %d \n Reket: %s \n Ulaz: $%d. \n/bizhelp ",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bVirWorld], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
Create3DTextLabel(string1,0x8361FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],55, 0, 1);
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"Biznis na prodaju! \n %s \n Cena: $%d \n Level: %d \n/buybiz",SBizzInfo[h][sbMessage], SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(string1,0x8361FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],55, 0, 1);
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
}
if(SBizzInfo[h][sbOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n Reket: %s \n Ulaz: $%d. \n/bizhelp",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
Create3DTextLabel(string1,0x8361FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],55, 0, 1);
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
}
}
[code]
EVO BUY HOUSE
if(strcmp(cmd, "/buyhouse", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
new Float:oldposx, Float:oldposy, Float:oldposz;
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
{
if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
{
format(string, sizeof(string), " Morate biti level %d da bi ste kupili ovu kucu!", HouseInfo[h][hLevel]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Vec imate kucu,ukucajte /sellhouse ako zelite da kupite drugu!");
return 1;
}
if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
{
    Delete3DTextLabel(Text3D:housesale);
PlayerInfo[playerid][pPhousekey] = h;
HouseInfo[h][hOwned] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
SafeGivePlayerMoney(playerid,-HouseInfo[h][hValue]);
PlayerPlayMusic(playerid);
/*SetPlayerInterior(playerid,HouseInfo[h][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[h][hWorld]);
SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]);*/
GameTextForPlayer(playerid, "~w~Dobrodosli~n~Da izadjete idite do vrata i pritisnite F", 5000, 3);
PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
PlayerInfo[playerid][pLocal] = h;
SendClientMessage(playerid, COLOR_WHITE, "Cestitamo na novoj kupovini!");
SendClientMessage(playerid, COLOR_WHITE, "Ukucajte /househelp za pomoc oko komandi!");
format(PropertyString,sizeof(PropertyString),"Vlasnik{FFFFFF} %s\n {FF0000}Rent:{FFFFFF} $%d \n {FF0000}Opis:{FFFFFF} %s \n {FF0000}Za Rent Koristi{FFFFFF} /rentroom", HouseInfo[h][hOwner], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
housesale = Create3DTextLabel(string1,0xFFA600FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
                        DateProp(playerid);
OnPropUpdate();
OnPlayerUpdate(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "   You don't have the cash for that !");
return 1;
}
}
}
}
return 1;
}
[code]
I EVO SELLL HOUSE
if(strcmp(cmd, "/sellhouse", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo[playerid][pPhousekey] == 255)
{
SendClientMessage(playerid, COLOR_WHITE, "You don't own a house.");
return 1;
}
if(PlayerInfo[playerid][pMarried] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   You are Married, can't sell the House !");
        return 1;
    }
if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
new house = PlayerInfo[playerid][pPhousekey];
HouseInfo[house][hHel] = 0;
HouseInfo[house][hArm] = 0;
HouseInfo[house][hHealthx] = 0;
HouseInfo[house][hHealthy] = 0;
HouseInfo[house][hHealthz] = 0;
HouseInfo[house][hArmourx] = 0;
HouseInfo[house][hArmoury] = 0;
HouseInfo[house][hArmourz] = 0;
HouseInfo[house][hLock] = 1;
HouseInfo[house][hOwned] = 0;
HouseInfo[house][hVec] = 418;
HouseInfo[house][hVcol1] = -1;
HouseInfo[house][hVcol2] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
//ConsumingMoney[playerid] = 1;
SafeGivePlayerMoney(playerid,HouseInfo[house][hValue]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Congratulations~n~ You have sold your property for ~n~~g~$%d", HouseInfo[house][hValue]);
GameTextForPlayer(playerid, string, 10000, 3);
format(string1, sizeof(string), "[SALE]\n$ %d",HouseInfo[house][hValue]);
housesale = Create3DTextLabel(string1,0x006400FF,HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey], HouseInfo[house][hEntrancez]+1,15,0,1);
PlayerInfo[playerid][pPhousekey] = 255;
if(PlayerInfo[playerid][pLocal] == house)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
}
OnPropUpdate();
OnPlayerUpdate(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You don't own a house.");
}
}
return 1;
}

AKO MOZETE DA MI URADITE JEDAN PRIMER OSTALO CU JA! Hvala vam unapred![/code]
Poslednja Izmena: Septembar 03, 2012, 19:59:10 POSLE PODNE od Stunter Dan