Linkup
-
Posts
4 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by Linkup
-
-
Erorile sunt acestea:
[pawn]C:\DOCUME~1\CLAUDY~1\Desktop\KRT~1\samp03\GAMEMO~1\testing.pwn(8919) : error 075: input line too long (after substitutions)
C:\DOCUME~1\CLAUDY~1\Desktop\KRT~1\samp03\GAMEMO~1\testing.pwn(8920) : error 037: invalid string (possibly non-terminated string)
C:\DOCUME~1\CLAUDY~1\Desktop\KRT~1\samp03\GAMEMO~1\testing.pwn(8920) : error 029: invalid expression, assumed zero
C:\DOCUME~1\CLAUDY~1\Desktop\KRT~1\samp03\GAMEMO~1\testing.pwn(8920) : error 029: invalid expression, assumed zero
C:\DOCUME~1\CLAUDY~1\Desktop\KRT~1\samp03\GAMEMO~1\testing.pwn(8920) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.[/pawn]
Scriptul este acesta:
[pawn] new ololo[512];
format(ololo,sizeof(ololo),"Name:[%s](%d) Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] Cash:[%s] Bank:[%s] Ph:[%d]\n\
Premium Account:[%s] NextLevel:[$%d] Respect:[%d/%d] PlayingHours:[%d] Rob Points:[%d]\n\
Kills:[%d] Deaths:[%d] Wanted Deaths:[%d] CrimesCommited:[%d] TimesArrested:[%d] Jail:[%s, %d]\n\
WantedLevel:[%d] Married with:[%s] Lotto number:[%d]Disease:[%s] Drugs:[%d] Materials:[%d]\n\
Team:[%s] Job:[%s] Organisation:[%s] Family:[%s] Rank:[%s] Faction Punish [0/60]\n\
Warns:[%d/4] Faction Warns:[%d/4] Admin Warns:[%d/5] Game Master Warns:[%d/3]"
,name,targetid,level,atext,age,otext,DecimalPoint(GetPlayerMoney(targetid)), DecimalPointBank(targetid), pnumber,drank,costlevel,exp,expamount,ptime,rob,kills,deaths,warrests,crimes,arrests,jailtext,timpinchisoare,wanted,married,lotto,dtext,drugs,mats,ttext,jtext,ftext,f2text,rtext,warn,facwarn,admwarn,gmwarn);
ShowPlayerDialog(playerid, 1932, DIALOG_STYLE_MSGBOX,"Your Statistics:",ololo,"ENTER","");
[/pawn]
PS: Am incercat cu "\" dar imi da eroare.
-
Am si eu o problema legata de businesuri si sbusinessuri.
Cand vreau sa modific tariful /bizfee, sau sa schimb numle /bizname, sau sa pun pe cineva la /extortion, nu merge. Imi apare ca, comanda functioneaza, dar nu se schimba nimic + ca apare Server: unknown comand, dar daca scriu comanda merge. Cred ca este ceva de la 3dtextdraw, ce pot face ?
cam asa arata textdraw update care l-am pus sa se schimbe cand dai aceste comenzi. La case nu exista nici o problema la /setrent si merge bine.
[pawn]public OnPropTextdrawUpdate(update, id)
{
new PropertyString[256];
if(update == 1)
{
if(HouseInfo[id][hOwned] == 0)
{
Delete3DTextLabel(HouseLabel[id]);
format(PropertyString,sizeof(PropertyString),"This House is for sale! \n Price: {FFFFFF}$%d {00E800}\n Description: {FFFFFF}%s {00E800}\n Level: {FFFFFF}%d {00E800}\n To Buy This {FFFFFF}/buyhouse",HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],20.0, 0, 1);
}
if(HouseInfo[id][hOwned] == 1)
{
Delete3DTextLabel(HouseLabel[id]);
format(PropertyString,sizeof(PropertyString),"Owner: {FFFFFF}%s {00E800}\n Rent Price: {FFFFFF}$%d {00E800}\n Description: {FFFFFF}%s {00E800}\n To Rent Type {FFFFFF}/rentroom",HouseInfo[id][hOwner],HouseInfo[id][hRent], HouseInfo[id][hDiscription]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],20.0, 0, 1);
}
}
else if(update == 2)
{
if(BizzInfo[id][bOwned] == 0)
{
Delete3DTextLabel(BizzLabel[id]);
format(PropertyString,sizeof(PropertyString),"This Business is for sale! \n Name: {FFFFFF}%s {00E800}\n Price: {FFFFFF}$%d {00E800}\n Level: {FFFFFF}%d {00E800}\n To Buy This, {FFFFFF}/buybiz",BizzInfo[id][bMessage],BizzInfo[id][bBuyPrice],BizzInfo[id][bLevelNeeded]);
BizzLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ],20.0, 0, 1);
}
if(BizzInfo[id][bOwned] == 1)
{
Delete3DTextLabel(BizzLabel[id]);
format(PropertyString,sizeof(PropertyString),"Name: {FFFFFF}%s {00E800}\n Owner: {FFFFFF}%s {00E800}\n Extortion: {FFFFFF}%s {00E800}\n Entering Fee: {FFFFFF}$%d. {00E800}\n To enter this, {FFFFFF}/enter.",BizzInfo[id][bMessage],BizzInfo[id][bOwner],BizzInfo[id][bExtortion],BizzInfo[id][bEntranceCost]);
BizzLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ],20.0, 0, 1);
}
}
else if(update == 3)
{
if(SBizzInfo[id][sbOwned] == 0)
{
Delete3DTextLabel(SBizzLabel[id]);
format(PropertyString,sizeof(PropertyString),"This Sbusiness is for sale! \n Name: {FFFFFF}%s {00E800}\n Price: {FFFFFF}$%d {00E800}\n Level: {FFFFFF}%d {00E800}\n To Buy This, {FFFFFF}/buybiz",SBizzInfo[id][sbMessage],SBizzInfo[id][sbBuyPrice],SBizzInfo[id][sbLevelNeeded]);
SBizzLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ],20.0, 0, 1);
}
if(SBizzInfo[id][sbOwned] == 1)
{
Delete3DTextLabel(SBizzLabel[id]);
format(PropertyString,sizeof(PropertyString),"Name: {FFFFFF}%s {00E800}\n Owner: {FFFFFF}%s {00E800}\n Extortion: {FFFFFF}%s {00E800}\n Fee: {FFFFFF}$%d {00E800}\n To enter this, {FFFFFF}/enter.",SBizzInfo[id][sbMessage],SBizzInfo[id][sbOwner],SBizzInfo[id][sbExtortion],SBizzInfo[id][sbEntranceCost]);
SBizzLabel[id] = Create3DTextLabel(PropertyString ,COLOR_GROVE,SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ],20.0, 0, 1);
}
}
return 1;
}[/pawn]
si comanda /setrent arata asa:
[pawn] if(strcmp(cmd, "/setrent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo[playerid][pPhousekey];
GetPlayerName(playerid, playername, sizeof(playername));
if (bouse != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrent [RentFee]");
return 1;
}
if(strval(tmp) < 1 || strval(tmp) > 99999)
{
SendClientMessage(playerid, COLOR_WHITE, "Minimum rent is $1, Maximum rent is $99999.");
return 1;
}
HouseInfo[bouse][hRent] = strval(tmp);
OnPropUpdate();
format(string, sizeof(string), "House rent set to $%d", HouseInfo[bouse][hRent]);
SendClientMessage(playerid, COLOR_WHITE, string);
OnPropTextdrawUpdate(1, bouse);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You don't own a house");
return 1;
}
}
return 1;
}[/pawn]
iar comanda /bizfee arata asa:
[pawn] if(strcmp(cmd, "/bizfee", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo[playerid][pPbiskey];
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, " You don't own a business !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bizfee [EntranceFee]");
}
if(strval(tmp) < 0 || strval(tmp) > 99999)
{
SendClientMessage(playerid, COLOR_WHITE, "Minimum entrance is $0, Maximum entrance is $99999.");
return 1;
}
if (bouse >= 100)
{
SBizzInfo[bouse-100][sbEntranceCost] = strval(tmp);
format(string, sizeof(string), "Entrance fee set to $%d.", SBizzInfo[bouse-100][sbEntranceCost]);
OnPropTextdrawUpdate(3, bouse);
}
else
{
BizzInfo[bouse][bEntranceCost] = strval(tmp);
format(string, sizeof(string), "Entrance fee set to $%d.", BizzInfo[bouse][bEntranceCost]);
OnPropTextdrawUpdate(2, bouse);
}
OnPropUpdate();
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}[/pawn]
Ce pot face, va rog mare ajutor ?
-
Salut am un system de vehicle la care nu imi merge ceva foarte bine, anume [/car lock]. Sa va explic cum sta treaba. Comanda functioneaza, adica masina se inchide, dar cand intru intr-o casa sau ies de pe server masina este deschisa. Cum pot face asta ca masina sa ramana mereu inchisa.
Cam asa arata code:
else if(strcmp(x_nr,"lock",true) == 0){
new keycar = PlayerInfo[playerid][pPcarkey];
if(keycar != 999)
{
new locked[256];
locked = strtok(cmdtext, idx);
if(CarInfo[keycar][cLock] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~w~Car ~g~Unlocked");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 0;
gCarLock[keycar] = 0;
UnLockCar(keycar);
OnPropUpdate();
return 1;
}
else if(CarInfo[keycar][cLock] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~w~Car ~r~Locked");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 1;
gCarLock[keycar] = 1;
LockCar(keycar);
OnPropUpdate();
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have a vehicle at slot 1");
return 1;
}
}
(Problema) error 075: input line too long
in Arhivă probleme
Posted
din ce mi-ai spus am inteles, ca trebuie sa modific format cu strcat, am modificat si acceasi eroare o primesc.