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 == 0)
{
format(PropertyString,sizeof(PropertyString),"Kuca na PRODAJU! \n ID kuce: %d \n Cena: $%d \n Opis: %s \n Level: %d\n/buyhouse",HouseInfo, HouseInfo,HouseInfo, HouseInfo);
HouseLabel = Create3DTextLabel(PropertyString,0x006400FF,HouseInfo, HouseInfo, HouseInfo,55, 0, 1);
}
if(HouseInfo == 1)
{
format(PropertyString,sizeof(PropertyString),"KUCA JE ZAUZETA! \n Vlasnik: %s \n ID kuce: %d \n Renta: $%d \n Opis: %s \n/househelp",HouseInfo,HouseInfo, HouseInfo, HouseInfo);
Create3DTextLabel(string1,0x006400FF,HouseInfo, HouseInfo, HouseInfo,55, 0, 1);
AddStaticPickup(1318, 2, HouseInfo, HouseInfo, HouseInfo);
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo == 0)
{
format(PropertyString,sizeof(PropertyString),"Biznis na prodaju! \n %s \n Biznis ID: %d \n Cena: $%d \n Level: %d \n/buybiz",BizzInfo, BizzInfo, BizzInfo, BizzInfo);
BizzLabel = Create3DTextLabel(string1,0x8361FFFF,BizzInfo, BizzInfo, BizzInfo,55, 0, 1);
AddStaticPickup(1272, 2, BizzInfo, BizzInfo, BizzInfo);
}
if(BizzInfo == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n Firma ID: %d \n Reket: %s \n Ulaz: $%d. \n/bizhelp ",BizzInfo,BizzInfo, BizzInfo, BizzInfo, BizzInfo);
Create3DTextLabel(string1,0x8361FFFF,BizzInfo, BizzInfo, BizzInfo,55, 0, 1);
AddStaticPickup(1239, 2, BizzInfo, BizzInfo, BizzInfo);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo == 0)
{
format(PropertyString,sizeof(PropertyString),"Biznis na prodaju! \n %s \n Cena: $%d \n Level: %d \n/buybiz",SBizzInfo, SBizzInfo, SBizzInfo);
SBizzLabel = Create3DTextLabel(string1,0x8361FFFF,SBizzInfo, SBizzInfo, SBizzInfo,55, 0, 1);
AddStaticPickup(1272, 2, SBizzInfo, SBizzInfo, SBizzInfo);
}
if(SBizzInfo == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n Reket: %s \n Ulaz: $%d. \n/bizhelp",SBizzInfo,SBizzInfo, SBizzInfo, BizzInfo);
Create3DTextLabel(string1,0x8361FFFF,SBizzInfo, SBizzInfo, SBizzInfo,55, 0, 1);
AddStaticPickup(1239, 2, SBizzInfo, SBizzInfo, SBizzInfo);
}
}
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, HouseInfo, HouseInfo) && HouseInfo == 0)
{
if(PlayerInfo < HouseInfo)
{
format(string, sizeof(string), " Morate biti level %d da bi ste kupili ovu kucu!", HouseInfo);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(PlayerInfo != 255 && strcmp(playername, HouseInfo[PlayerInfo], true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Vec imate kucu,ukucajte /sellhouse ako zelite da kupite drugu!");
return 1;
}
if(GetPlayerMoney(playerid) > HouseInfo)
{
Delete3DTextLabel(Text3D:housesale);
PlayerInfo = h;
HouseInfo = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(HouseInfo, sendername, 0, strlen(sendername), 255);
SafeGivePlayerMoney(playerid,-HouseInfo);
PlayerPlayMusic(playerid);
/*SetPlayerInterior(playerid,HouseInfo);
SetPlayerVirtualWorld(playerid,HouseInfo);
SetPlayerPos(playerid,HouseInfo,HouseInfo,HouseInfo);*/
GameTextForPlayer(playerid, "~w~Dobrodosli~n~Da izadjete idite do vrata i pritisnite F", 5000, 3);
PlayerInfo = HouseInfo;
PlayerInfo = 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, HouseInfo, HouseInfo);
housesale = Create3DTextLabel(string1,0xFFA600FF,HouseInfo, HouseInfo, HouseInfo+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;
}
I EVO SELLL HOUSE
if(strcmp(cmd, "/sellhouse", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo == 255)
{
SendClientMessage(playerid, COLOR_WHITE, "You don't own a house.");
return 1;
}
if(PlayerInfo > 0)
{
SendClientMessage(playerid, COLOR_GREY, " You are Married, can't sell the House !");
return 1;
}
if(PlayerInfo != 255 && strcmp(playername, HouseInfo[PlayerInfo], true) == 0)
{
new house = PlayerInfo;
HouseInfo = 0;
HouseInfo = 0;
HouseInfo = 0;
HouseInfo = 0;
HouseInfo = 0;
HouseInfo = 0;
HouseInfo = 0;
HouseInfo = 0;
HouseInfo = 1;
HouseInfo = 0;
HouseInfo = 418;
HouseInfo = -1;
HouseInfo = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(HouseInfo, "The State", 0, strlen("The State"), 255);
//ConsumingMoney = 1;
SafeGivePlayerMoney(playerid,HouseInfo);
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);
GameTextForPlayer(playerid, string, 10000, 3);
format(string1, sizeof(string), "\n$ %d",HouseInfo);
housesale = Create3DTextLabel(string1,0x006400FF,HouseInfo, HouseInfo, HouseInfo+1,15,0,1);
PlayerInfo = 255;
if(PlayerInfo == house)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,HouseInfo,HouseInfo,HouseInfo);
PlayerInfo = 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!
