xt3z0ne
-
Posts
168 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by xt3z0ne
-
-
Nu pune new PlayerInfo etc., il ai deja definit! pune fara new
am pus new pInfo[bla][bla]
Si edit.
Nu imi merge 3 comenzi alea find /sss /startstunt /leavestunt
dcmd(sss, 5, cmdtext); dcmd(sss1, 4, cmdtext); dcmd(sss2, 4, cmdtext); dcmd(sss3, 4, cmdtext); dcmd(sss4, 4, cmdtext); dcmd(sss5, 4, cmdtext); dcmd(sss6, 4, cmdtext); dcmd(sss7, 4, cmdtext); dcmd(leavestunt, 5, cmdtext); dcmd(startstunt, 5, cmdtext);
cred cai de aici :-?
-
La a doua pune PlayerCoin nu poti defini un element de doua ori.
Pai si mai salveaza coins-u
La stunt am incercat
StuntSave si nu il salva:-?
Edit nu mai salveaza coins daca fac asa :|
-
Nick:Johnny
Problema:Deci eu am facut la sistemele pe care le-am facut de coins si stunt le-am facut pe PlayerFile si daca am 2 de PlayerFile in luxadmin nu merge am un warnings cum asi pute-a sa am duar pe un singur PlayerFile[pawn]D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(23) : warning 201: redefinition of constant/macro (symbol "PlayerFile")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.[/pawn]
Erori / warnings:
Lini/script:[pawn]
#define PlayerFile " LuxAdmin/Stunt/%s.ini"
[/pawn]
Ai incercat sa rezolvi singur ?: Iar eu mai am
[pawn]#define PlayerFile " LuxAdmin/Coins/%s.ini"[/pawn]
Care-va idee plzz?
-
Poate in acel script nu ai folosit nici un parametru
[pawn]dcmd_sss1(playerid)
{
SetPlayerPos(playerid,1705.5045, 1452.9928, 9.8187);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss2(playerid)
{
SetPlayerPos(playerid,1839.3021, 1562.0797, 10.0390);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss3(playerid)
{
SetPlayerPos(playerid,2168.1328, 1213.5763, 10.9927);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss4(playerid)
{
SetPlayerPos(playerid,2416.8218, 1358.4696, 20.4118);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss5(playerid)
{
SetPlayerPos(playerid,2826.7634, 1468.8693, 10.8887);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss7(playerid)
{
SetPlayerPos(playerid,-2008.0447, 729.4238, 44.7940);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss6(playerid)
{
SetPlayerPos(playerid,1920.0028, 2009.4620, 10.5883);
return 1;
}[/pawn]
Dar nu cred ca ar trebuie sa iti dea warnings.
Nici nu merge
din cate ai vazut am si spus imi da ceva cu playerinfo
Adica astea
new PlayerInfo[MAX_PLAYERS][PLAYER_STUNT]; new PlayerInfo[MAX_PLAYERS][PLAYER_COINS];
-
Vreau sa stiu si eu dece mi-a fost postu sters in care imi caut partener.
Pentru a deschide o comunitate si server:|
Din cate vad prin posturile astea si mafia cauta ceva.
Eu nu inteleg dece mi-a fost postu sters.
-
Sisteme deastea sunt pe tot forumu .. fa si tu ceva mai frumos gen un sistem de radio cu textdraw, sa alegi radio-u apasand pe un textdraw.. etc
3/5
Este radiou lui durex editat de tine ai schimbat culorile si ai facut niste radio-uri;)
Ai pus peste tot s Dela Seby
public s_CustomR(playerid) { new sStr[200], sStr2[200]; //-------------------------------------------------------------------------- format(sStr2, sizeof(sStr2), "{00FF00}Hi, {FF0000}%s{00FF00}!\n{00FF00}Please enter the {FF0000}Radio Station Link {00FF00}you want to listen before:", s_ReturnName(playerid)); strcat(sStr, sStr2, sizeof(sStr)); //-------------------------------------------------------------------------- return ShowPlayerDialog(playerid, s_CustomD, DIALOG_STYLE_INPUT, "Custom {FF0000}Radio", sStr, "Listen", "Close"); }
Ai tradus asta in engleza. Iar la durex.new RString[200]; //-------------------------------------------------------------------------- strcat(RString, "{FF9900}Salut %s!\n" , ReturnName(playerid)); strcat(RString, "{FFFFFF}Introdu mai jos {FF9900}link-ul radioului {FFFFFF}pe care vrei sa-l asculti:"); //-------------------------------------------------------------------------- ShowPlayerDialog(playerid,4591,DIALOG_STYLE_INPUT,"{0000FF}• {FFFF00}• {FF0000}• {FFFFFF} Meniu Radio", RString,"Asculta", "Inchide");
Au Au Au.
-
EDIT: Nu merg comenzile :| Ce naiba:| Si imi da erorile astea:-?symbol is never used: "params"
Pune#pragma unused params
Adica , Ex :dcmd_sss1(playerid,params[]) { #pragma unused params SetPlayerPos(playerid,1705.5045, 1452.9928, 9.8187); return 1; }
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(190) : error 021: symbol already defined: "PlayerInfo" D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(648) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(651) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(824) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1644) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1651) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1652) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1653) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1654) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1668) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1669) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1868) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8721) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8728) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8735) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8742) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8749) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8756) : warning 213: tag mismatch D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8763) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
Ofi din cauza ca am 2 de PlayerInfo?
Am asa
[pawn]
new PlayerInfo[MAX_PLAYERS][PLAYER_STUNT];
new PlayerInfo[MAX_PLAYERS][PLAYER_COINS];
[/pawn]
-
Nick:Johnny
Problema:Pai am warnings cu params si nu stiu ce sai mai fac:|
Erori / warnings:[pawn]D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1672) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1713) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1720) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1727) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1734) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1741) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1748) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1755) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1762) : warning 203: symbol is never used: "params"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1769) : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
10 Warnings.[/pawn]
Lini/script:[pawn]
dcmd_sss1(playerid,params[])
{
SetPlayerPos(playerid,1705.5045, 1452.9928, 9.8187);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss2(playerid,params[])
{
SetPlayerPos(playerid,1839.3021, 1562.0797, 10.0390);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss3(playerid,params[])
{
SetPlayerPos(playerid,2168.1328, 1213.5763, 10.9927);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss4(playerid,params[])
{
SetPlayerPos(playerid,2416.8218, 1358.4696, 20.4118);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss5(playerid,params[])
{
SetPlayerPos(playerid,2826.7634, 1468.8693, 10.8887);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss7(playerid,params[])
{
SetPlayerPos(playerid,-2008.0447, 729.4238, 44.7940);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss6(playerid,params[])
{
SetPlayerPos(playerid,1920.0028, 2009.4620, 10.5883);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_leavestunt(playerid,params[])
{
DisablePlayerCheckpoint(playerid);
return 1;
}
//------------------------------------------------------------------------------//
//------------------------------------------------------------------------------//
dcmd_sss(playerid,params[])
{
SendClientMessage(playerid,COLOR_RED,"Usage:sss<1-7>");
return 1;
}
[/pawn]
Ai incercat sa rezolvi singur ?:Help:(((((
-
In loc de
[pawn]PlayerInfo[giveplayerid][PointStunt](playerid,20);[/pawn]
pune
[pawn]PlayerInfo[playerid][PointStunt][playerid] +=20;[/pawn]
Deci.
PlayerInfo[playerid][PointStunt][playerid] +=20;
Este functia care i seteaza . eu vreau GiveStunt daca jucatoru ala are 20000 stunt si el cand intra in ch. I seteasa 20 si el pierde 20000 .:-? Edit am facut si cum ai spusD:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : warning 215: expression has no effect D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : error 001: expected token: ";", but found "[" D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : error 029: invalid expression, assumed zero D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : warning 215: expression has no effect D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : error 001: expected token: ";", but found "]" D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
PlayerInfo[playerid][PointStunt][playerid] +=20;
-
Nick:Johnny
Problema:Deci mam pus sa fac un sistem de stunt " dar pana il rezolv fac un radio sistem ) " Deci am problema cu
PlayerInfo[giveplayerid][PointStunt](playerid,20);
Erori / warnings:[pawn]
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(67) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(67) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(67) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(74) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(74) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(74) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(81) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(81) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(81) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(88) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(88) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(88) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(95) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(95) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(95) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(102) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(102) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(102) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(243) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
[/pawn]
Lini/script:
[pawn]
public OnPlayerEnterCheckpoint(playerid)
{
new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0);
if (cpid == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid2 = SetPlayerCheckpoint(playerid,1851.7083, 1426.3226, 15.9196,4.0);
if (cpid2 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid3 = SetPlayerCheckpoint(playerid,2000.9673, 1213.1139, 17.0789,4.0);
if (cpid3 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid4 = SetPlayerCheckpoint(playerid,2396.9082, 1146.4279, 33.2691,4.0);
if (cpid4 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid5 = SetPlayerCheckpoint(playerid,2776.7856, 1257.4076, 16.9512,4.0);
if (cpid5 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid6 = SetPlayerCheckpoint(playerid,1958.6522, 1943.2184, 22.2268,4.0);
if (cpid6 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid7 = SetPlayerCheckpoint(playerid,-1389.2230, 673.6660, 2.2660,4.0);
if (cpid7 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
return 1;
}
[/pawn]
Ai incercat sa rezolvi singur ?:
Eu cand am inceput sistemu am facut mai intai stunt point.
La comanda am facut asa.
[pawn]
CMD:setstunt(playerid, params[])
{
if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid, RED, "ERROR: Only admins can use that command!");
if(sscanf(params, "ud", giveplayerid, stunt1)) return SendClientMessage(playerid, RED, "USAGE: /setstunt [playerid] [stunt]");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "ERROR: That player is not connected!");
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(giveplayerid, Global_Name, sizeof(Global_Name));GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
format(sstring, sizeof(sstring), "You have succesfully setted %s stunt to %d!", Global_Name, stunt1);
SendClientMessage(playerid, BLUE, sstring);
format(sstring, sizeof(sstring), "Admin %s has setted your stunt to %d!", Name, stunt1);
SendClientMessage(giveplayerid, BLUE, sstring);
PlayerInfo[giveplayerid][PointStunt] = stunt1;
dini_IntSet(file,"PointStunt:", PlayerInfo[giveplayerid][PointStunt]);
return 1;
}
[/pawn]
Care aveti rezolvare?
-
Rezolvat By Gireada
Tanks Bro pentru accel tutorial cu { AccInfo:D
-
NexT." post="161290" timestamp="1399453055"]
Incearca asa:
//============================================================================== if (dialogid == BuyVip) { if(response) { if(listitem == 0) { if AccInfo[playerid][hours] >= 20) //Orele care trebuie sa le aiba playerul { AccInfo[playerid][pVip] = 1; //Levelul la VIP AccInfo[playerid][hours] -= 20; } else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule } if(listitem == 1) { if AccInfo[playerid][hours] >= 40) //Orele pentru a cumpara VIP { AccInfo[playerid][pVip] = 2; //Levelul de VIP AccInfo[playerid][hours] -= 40; } else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente } if (listitem == 2) { if AccInfo[playerid][hours] >= 60) //Orele care trebuiesc pentru a cumpara VIP { AccInfo[playerid][pVip] = 3; //Levelul VIP AccInfo[playerid][hours] = 60; } else SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore } } return 1; } //==============================================================================
[pawn]
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8763) : error 017: undefined symbol "BuyVip"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8769) : error 001: expected token: "*then", but found ")"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8769) : error 029: invalid expression, assumed zero
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8774) : error 029: invalid expression, assumed zero
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8774) : error 017: undefined symbol "SendClienMessage"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8778) : error 001: expected token: "*then", but found ")"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8778) : error 029: invalid expression, assumed zero
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8783) : error 029: invalid expression, assumed zero
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8783) : error 017: undefined symbol "SendClienMessage"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8787) : error 001: expected token: "*then", but found ")"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8787) : error 029: invalid expression, assumed zero
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8792) : error 029: invalid expression, assumed zero
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(8792) : error 017: undefined symbol "SendClienMessage"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(12427) : warning 203: symbol is never used: "dcmd_buyvip"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
13 Errors.
[/pawn]
Acu imi da mai putine erori ?
-
Nick:Johnny
Problema:Pai am dat de un /buyvip pe ore si cand pun la public OnDialogResponse numa erori imi da :|
Erori / warnings: [pawn]
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(502) : error 017: undefined symbol "UpdateConfig"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(503) : error 017: undefined symbol "ReadTextDraws"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(522) : error 017: undefined symbol "ShowConfigInConsole"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(547) : error 004: function "SaveTeleport" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(656) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(671) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(691) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(743) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(761) : error 017: undefined symbol "SavePlayerStats"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1027) : error 004: function "MessageToPlayerVIP" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1028) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1038) : error 004: function "MessageToAdmins" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1040) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1069) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1125) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1166) : error 017: undefined symbol "AdvertisementCheck"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1179) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1226) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1247) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 017: undefined symbol "BuyVip"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 017: undefined symbol "Cancel"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 029: invalid expression, assumed zero
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
23 Errors.
[/pawn]
Lini/script:
Daca scot asta.
[pawn]
//==============================================================================
if (dialogid == BuyVip)
{
if(response)
{
if(listitem == 0)
{
if AccInfo[playerid][hours] >= 20) //Orele care trebuie sa le aiba playerul
{
AccInfo[playerid][pVip] = 1; //Levelul la VIP
AccInfo[playerid][hours] -= 20;
}
else
{
SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule
}
}
if(listitem == 1)
{
if AccInfo[playerid][hours] >= 40) //Orele pentru a cumpara VIP
{
AccInfo[playerid][pVip] = 2; //Levelul de VIP
AccInfo[playerid][hours] -= 40;
}
else
{
SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente
}
}
if (listitem == 2)
{
if AccInfo[playerid][hours] >= 60) //Orele care trebuiesc pentru a cumpara VIP
{
AccInfo[playerid][pVip] = 3; //Levelul VIP
AccInfo[playerid][hours] = 60;
}
else
{
SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore
}
}
}
[/pawn] nu mai am erori .
Si asta-i comanda.
[pawn]
dcmd_buyvip(playerid,params[]) //Adaugati oriunde in GameMode
{
#pragma unused params
ShowPlayerDialog(playerid, BuyVip, DIALOG_STYLE_LIST,"BuyVip","{FFFFFF}Level 1 {FFAF00} --> {FF0000} 20 Ore\n{FFFFFF}Level 2 {FFAF00} --> {FF0000} 40 Ore\n{FFFFFF}Level 3 {FFAF00} --> {FF0000}60 Ore","Select","Cancel);
return 1;
}
[/pawn]
Ai incercat sa rezolvi singur ?: nu stiu ce naiba sai fac..
-
Nick:Johnny
Problema: Pai nu imi arata skin-u cu fata la camera:|
Erori / warnings:~~~
Lini/script:[pawn]
SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,14);
SetWorldTime(00);
SetPlayerPos(playerid,-4469.2090,3492.5457,5.8793);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,-4476.12, 3501.67, 8.46);
// InterpolateCameraPos(playerid, -4573.02, 3694.91, 70.06, -4476.12, 3501.67, 8.46, 100 = CAMERA_CUT);
SetPlayerCameraLookAt(playerid, -4469.2090,3492.5457,5.8793);
}
[/pawn]
Ai incercat sa rezolvi singur ?:Nu ca habar nam cum...
Ma poate ajuta cineva?
-
ai creat folderul Coins in folderul cu LuxAdmin ?
Tu ce crezi?
Normal:)
-
Poate alt cineva are idee dece nu se salveaza...
EDIT: Imi pare rau de 2 xPost am uitat de el.
-
stock ShowStats(playerid) { new stats[200]; format(stats,200,"PlayerName: %s\n\ Money: %d\n\ Score: %d\n\", PlayerName(playerid),GetPlayerMonet(playerid),GetPlayerScore(playerid)); ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,"Player Stats",stats,"Ok",""); return 1; }
etc...si continui tu te descurci
Am facut alt ceva
[pawn]dcmd_stats(playerid,params[])
{
new str[512], pDeaths, player1, h, m, s;
new tmp3[50];
GetPlayerIp(player1,tmp3,50);
if(!strlen(params)) player1 = playerid;
else player1 = strval(params);
if(!IsPlayerConnected(player1)) return SendClientMessage(playerid, red, "ERROR: Player Not Connected!");
TotalGameTime(player1, h, m, s);
if(AccInfo[player1][Deaths] == 0) pDeaths = 1;
else pDeaths = AccInfo[player1][Deaths];
format(str, sizeof(str), "{DAA520}%s (ID: %d){B0C4DE}\n", PlayerName2(player1), player1);
format(str, sizeof(str), "%s{FF6600}General Statistics\n", str);
format(str, sizeof(str), "%s{ffe100}Money: {ffffff}$%d\n", str, GetPlayerMoney(player1));
format(str, sizeof(str), "%s{ffe100}Score: {ffffff}%d\n", str, GetPlayerScore(player1));
format(str, sizeof(str), "%s{ffe100}Online Time: {ffffff}%d{1DEE01} hrs, {ffffff}%d{1DEE01} mins, {ffffff}%d{1DEE01} secs\n", str, h, m, s);
format(str, sizeof(str), "%s{ffe100}Biscuiti: {ffffff}%d\n", str, pInfo[playerid][Coins]);
format(str, sizeof(str), "%s{FF6600}Level Statistics\n", str);
format(str, sizeof(str), "%s{ffe100}Admin Level: {ffffff}%d\n", str, AccInfo[player1][Level]);
format(str, sizeof(str), "%s{ffe100}Vip Level: {ffffff}%d\n", str, AccInfo[player1][pVip]);
format(str, sizeof(str), "%s{FF6600}Others Statistics\n", str);
format(str, sizeof(str), "%s{ffe100}Kills: {ffffff}%d\n", str, AccInfo[player1][Kills]);
format(str, sizeof(str), "%s{ffe100}Deaths: {ffffff}%d\n", str, AccInfo[player1][Deaths]);
format(str, sizeof(str), "%s{ffe100}Ratio: {ffffff}%d\n", str, Float:AccInfo[player1][Kills]/Float:pDeaths);
format(str, sizeof(str), "%s{ffe100}Ping: {ffffff}%d\n", str, GetPlayerPing(player1));
ShowPlayerDialog(playerid, 8435, DIALOG_STYLE_MSGBOX, "Player Statistics", str, "Close", "");
return 1;
}[/pawn]
Si merge si e tot la fel de usor.
-
WoW Sistem sa iti dau o idee cai cam simplu.
Poate in V2 pune si.
Sterge Hold
Si sa se salveze Hold intru folder numit
/Holding/%s_%d.ini
Ma intelegi tu.
-
YepRezolvat?
-
Macar salveaza in fisier banii?
Astai si treaba nu urca nmk in folderu Coins sau / Coins System
-
Nick:Johnny
Problema:Pai problema este ca nu imi salveaza coins am incorporat sistem-u in luxadmin dar dupa ce ies nu mai ramane coins salvat
Erori / warnings:~
Lini/script:
Syste-mu de coins este asta
[pawn]
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
PLEASE DON'T REMOVE!!!!!CREDITS!!!!!!!! xxSPEEDYxx's Coins system|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
||=========================================================================================||
|| ||
||>> / / ||========= ||========= ||========= ||====\\ \\ // <<||
||>> / / || || || || || \\ \\ // <<||
||>> \ \ || || || || || \\ \\ // <<||
||>> \ \ || || ||====== ||====== || // \\// <<||
||>> \ \ ||====== || || || // // <<||
||>> / / || || || || // // <<||
||>> / / || ||========= ||========= ||====+ // <<||
|| ||
||=========================================================================================||
*/
#include <a_samp>
#include <Dini>
#include <sscanf2>
#define PlayerFile "Coins System/%s.ini"
#define coinsD 187
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define Red 0xFF0000FF
#define Grey 0xAFAFAFAA
#define Green 0x33AA33AA
#define Yellow 0xFFFF00AA
#define White 0xFFFFFFAA
#define Blue 0x0000BBAA
#define Lightblue 0x33CCFFAA
#define Orange 0xFF9900AA
#define Lime 0x10F441AA
#define Magenta 0xFF00FFFFT
#define Navy 0x000080AA
#define Aqua 0xF0F8FFAA
#define Crimson 0xDC143CAA
#define Black 0x000000AA
#define Brown 0XA52A2AAA
#define Gold 0xB8860BAA
#define Limegreen 0x32CD32AA
enum PLAYER_MAIN
{
Coins
}
new giveplayercoinsid, amount;
new pInfo[MAX_PLAYERS][PLAYER_MAIN];
public OnPlayerConnect(playerid)
{
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
if(!dini_Exists(file)) {
dini_Create(file);
dini_IntSet(file,"Coins", pInfo[playerid][Coins]);
}
pInfo[playerid][Coins] = dini_Int(file,"Coins");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
dini_IntSet(file,"Coins", pInfo[playerid][Coins]);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(givecoins, 9, cmdtext);
dcmd(setcoins, 8, cmdtext);
return 0;
}
dcmd_givecoins(playerid, params[])
{
if(sscanf(params, "ud", giveplayercoinsid, amount)) SendClientMessage(playerid, Orange, "USAGE : /givecoins [playerid] [amount]");
else if(giveplayercoinsid == INVALID_PLAYER_ID) SendClientMessage(playerid, Red, "ERROR : That player is not connected!");
else if(giveplayercoinsid == playerid) SendClientMessage(playerid, Red, "ERROR : You cant send yourself coins!");
else if(amount > pInfo[playerid][Coins]) SendClientMessage(playerid, Red, "ERROR : You dont have that amount of coins!");
else
{
new string[156],file[100],Name[MAX_PLAYER_NAME],Ip[16],name[MAX_PLAYER_NAME]; GetPlayerName(giveplayercoinsid, name, sizeof(name));GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
format(string, sizeof(string), "SERVER : You have succesfully sent %d coins to %s!", amount, name);
SendClientMessage(playerid, Limegreen, string);
format(string, sizeof(string), "SERVER : %s has given to you %d coins!", Name, amount);
SendClientMessage(giveplayercoinsid, Limegreen, string);
pInfo[giveplayercoinsid][Coins] += amount;
pInfo[playerid][Coins] -= amount;
dini_IntSet(file,"Coins", pInfo[giveplayercoinsid][Coins]);
dini_IntSet(file,"Coins", pInfo[playerid][Coins]);
}
return 1;
}
dcmd_setcoins(playerid, params[])
{
if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid, Red, "ERROR : Only admins can use that command!");
if(sscanf(params, "ud", giveplayercoinsid, amount)) SendClientMessage(playerid, Orange, "USAGE : /setcoins [playerid] [amount]");
else if(giveplayercoinsid == INVALID_PLAYER_ID) SendClientMessage(playerid, Red, "ERROR : That player is not connected!");
else
{
new string[156],file[100],Name[MAX_PLAYER_NAME],Ip[16],name[MAX_PLAYER_NAME]; GetPlayerName(giveplayercoinsid, name, sizeof(name));GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
format(string, sizeof(string), "You have succesfully setted %s coins to %d!", name, amount);
SendClientMessage(playerid, Limegreen, string);
format(string, sizeof(string), "Admin %s has setted your coins to %d!", Name, amount);
SendClientMessage(giveplayercoinsid, Limegreen, string);
pInfo[giveplayercoinsid][Coins] = amount;
dini_IntSet(file,"Coins", pInfo[giveplayercoinsid][Coins]);
}
return 1;
}
[/pawn]
Iar eu am facut asa
#define PlayerFile "LuxAdmin/Coins/%s.ini"
Am incercat si cu Coins System dar nimic.
Va rog se poate sa ma ajute careva :-?
Ai incercat sa rezolvi singur ?:~~ Da am incercat si nam reusit.
EDIT: cand dau /setcoins imi urca coins in /stats dar dupa iesire nu mai am nmk..(
-
Pless New Link La V2 :D
-
Nick:Johnny...
Salut am ales sa postez aici pentru ca este Discutii Scripting si in alta parte nam gasit.
Am si eu LuxAdmin editat dupa placu meu si vreau sa imi spuneti si mie de unde pot scoate auto Login din luxadmin adica sa nul mai login automat si sa apara duar
Regiser/Login
Eu am asa
La OnPlayerRequestSpawn
[pawn]
// Request Register
#if USE_DIALOGS == false
if(AccInfo[playerid][Registered] == 0 && ServerInfo[MustRegister] == 1 && (!IsPlayerNPC(playerid))){
SendClientMessage(playerid,lightred,"SERVER: Your account isn't registered. Please Register! | /"#RegisterCommand" [Password]");
return 0;
}
// Request Login
if(ServerInfo[MustLogin] == 1 && AccInfo[playerid][Registered] == 1 && AccInfo[playerid][LoggedIn] == 0 && (!IsPlayerNPC(playerid))){
SendClientMessage(playerid,lightred,"SERVER: Your account is registered. Please Login! | /"#LoginCommand" [Password]");
return 0;
}
#endif
[/pawn]
Ajutor/Soluti
-
Rezolvat am facut.
Ceva nam mai pus stock sau alte cacaturi=)
Cerere Ajutor params
in Arhivă probleme
Posted
Ok.
Am sa imi fac timp poate il trec pe zcmd.