[Pomoc]Dialog

Započeo (BSL)MasteR, Decembar 23, 2011, 22:30:05 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FactionGame Edit
Detaljan opis problema:Kako da stavim naprimer /help /admini /househelp i tako to i sve te koje ocu komande u dialog, i kako da napravim /orghelp da svaka organizacija ima svoju komandu da vide sve komande.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......

dobro jel mos ista sam napravit
stavi u komandu umjesto svega onoga
ShowPlayerDialog
http://wiki.sa-mp.com/wiki/ShowPlayerDialog
sve objasnjeno !

molim vas da mi ovo stavite ako mozete u dialog da bude kao lista
if(strcmp(cmd, "/help", true) == 0 || strcmp(cmd, "/pomoc", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid, COLOR_GRAD1,":: ACCOUNT :: /pbravila /stats /promjenipass /kupilevel /nadogradnja");
SendClientMessage(playerid, COLOR_GRAD1,":: OPSTE :: /plati /vrijeme /kupi /naruci /ov /odeca /unrentcar /unrentbike /switchkey /animhelp");
SendClientMessage(playerid, COLOR_GRAD2,":: OPSTE :: /kupioruzije /pokazidozvole /zakljucaj /pitaj /report /resetupgrades(50k) /skill /fuel");
SendClientMessage(playerid, COLOR_GRAD2,":: OPSTE :: /odbij /prihvati /izbaci /usedrugs /contract /fill /admins (/f)actionlist /knockout");
SendClientMessage(playerid, COLOR_GRAD3,":: OPSTE :: (/wi)ndows /coin /trunk (/inv)entory /knock /give /otvorikapiju /pokazilicnu,/animacije,/animacije2");
  SendClientMessage(playerid, COLOR_GRAD3,":: CHAT :: (/p)me (/w)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /smoke");
SendClientMessage(playerid, COLOR_GRAD4,":: BANKA :: /balance /withdraw /deposit /wiretransfer");
SendClientMessage(playerid, COLOR_YELLOW,":: DONATOR :: /togooc /tognews /togfam /togpm /togphone /pme");
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
{
    SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /uhapsi /duznost /osumnjiceni /stavilisice /tazer /undercover");
SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: /bk /bkc /pretresi /pretresinv /oduzmi /kazna /gov /area51 /srusivrata /ubaci /odvezipolicajca /pokaziznacku");
SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: /roadblock(/rb) /roadunblock(/rrb) /roadunblockall(/rrball) /tracelastcall(/tlc)");
    }
    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
{
    SendClientMessage(playerid, COLOR_YELLOW2, ":: BIA :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /uhapsi /duznost /osumnjiceni /stavilisice /tazer /agent /pokazifbi");
SendClientMessage(playerid, COLOR_YELLOW2, ":: BIA :: /pretresi /pretresinv /oduzmi /kazna (/gov)ernment /area51 /srusivrata /ubaci /odvezipolicajca");
    }
    if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
    SendClientMessage(playerid, COLOR_YELLOW2, ":: SWAT :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /uhapsi /duznost /osumnjiceni /stavilisice /tazer");
SendClientMessage(playerid, COLOR_YELLOW2, ":: SWAT :: /pretresi /pretresinv /oduzmi /kazna (/gov)ernment /area51 /srusivrata /ubaci /odvezipolicajca");
    }
            if(PlayerInfo[playerid][pJob] == 1) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /find"); }
    else if(PlayerInfo[playerid][pJob] == 2) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /free"); }
    else if(PlayerInfo[playerid][pJob] == 3) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sex"); }
    else if(PlayerInfo[playerid][pJob] == 4) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /selldrugs"); }
    else if(PlayerInfo[playerid][pJob] == 5) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /dropcar"); }
    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /paper /papers /live /news [text]"); }
    else if(PlayerInfo[playerid][pJob] == 7) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /repair /refill /duty"); }
    else if(PlayerInfo[playerid][pJob] == 8) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /guard"); }
    else if(PlayerInfo[playerid][pJob] == 9) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sellgun"); }
    else if(PlayerInfo[playerid][pJob] == 10) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sellcar"); }
    else if(PlayerInfo[playerid][pJob] == 11) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /prevoz"); }
    else if(PlayerInfo[playerid][pJob] == 12) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /fight /boxstats"); }
    else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /fare"); }
    else if(PlayerInfo[playerid][pJob] == 15) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /papers /bring /deliver"); }
    else if(PlayerInfo[playerid][pJob] == 16) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /buyprods /sellprods /load"); }
    else if(PlayerInfo[playerid][pJob] == 17) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /duty /sellpizza"); }
    else if(PlayerInfo[playerid][pJob] == 18) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startharvest /stopharvest"); }
    else if(PlayerInfo[playerid][pJob] == 19) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startdrugharvest /stopdrugharvest"); }
    else if(PlayerInfo[playerid][pJob] == 20) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /smuggledrugs"); }
    else if(PlayerInfo[playerid][pJob] == 21) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startsweep /stopsweep"); }
    else if(PlayerInfo[playerid][pJob] == 22) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /smugglemats"); }
    else if(PlayerInfo[playerid][pJob] == 23) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /creategun /buymats"); }
            else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
    SendClientMessage(playerid,COLOR_YELLOW2,":: HITMAN :: /portable"); }
if (gTeam[playerid] == 1 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SendClientMessage(playerid, COLOR_YELLOW2, ":: HITNA POMOC :: (/r)adio (/d)epartments /heal /duznost");
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_YELLOW, ":: ADMIN :: (/a)dmin (/ah)elp");
}
if (PlayerInfo[playerid][pGm] >= 1)
{
SendClientMessage(playerid, COLOR_YELLOW, ":: GAMEMASTER :: (/g)amemaster (/gmh)elp");
}
SendClientMessage(playerid, COLOR_GRAD6,":: OSTALO :: /cellphonehelp /househelp /notehelp /vehiclehelp /renthelp /bizhelp /leaderhelp /fishhelp /cookhelp /irchelp");
}
return 1;
}
Poslednja Izmena: Decembar 23, 2011, 22:37:32 POSLE PODNE od (BSL)MasteR
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......

if(strcmp(cmd, "/organizacije", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
            ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Organizacije servera", "Policija - Gradska Bezbednost \nFBI - Drzavna Bezbednost \nS.W.A.T - Interventa Jedinica \nMedic - Drzavni dom zdravlja \nTaxi - Drzavna Sluzba \nParking Servis - Drzavna Sluzba \nLCN - Mafija \nLFS - Mafija \nYamaguchi - Mafija \nGrove Street Families - Banda \nLos Surenos 13 - Banda \nBallas - Banda \nMs 13 - Banda", "Uredu", "Uredu");
      }
      return 1;
    }



Evo ti jedan primer iz Gf edita

jel mzoe pomoc promenio sam /stats i jos nesto i izbacilo mi ove errore kako da ih resim:
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(2353) : warning 204: symbol is assigned a value that is never used: "ptime"
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(2348) : warning 204: symbol is assigned a value that is never used: "string"
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(2670) : warning 235: public function lacks forward declaration (symbol "IsAnInstructor")
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : error 017: undefined symbol "GetSlot"
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : warning 215: expression has no effect
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : error 001: expected token: ";", but found "]"
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : error 029: invalid expression, assumed zero
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : 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.
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......

Citat: (BSL)MasteR poslato Decembar 23, 2011, 23:43:21 POSLE PODNE
jel mzoe pomoc promenio sam /stats i jos nesto i izbacilo mi ove errore kako da ih resim:
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(2353) : warning 204: symbol is assigned a value that is never used: "ptime"
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(2348) : warning 204: symbol is assigned a value that is never used: "string"
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(2670) : warning 235: public function lacks forward declaration (symbol "IsAnInstructor")
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : error 017: undefined symbol "GetSlot"
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : warning 215: expression has no effect
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : error 001: expected token: ";", but found "]"
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : error 029: invalid expression, assumed zero
D:\samp gamemodes\bsl\gamemodes\balkan1.pwn(4197) : 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.

daj nam par linija iznad i par linija ispod ovih gdje pokazuje errore...

svi errori su ovde:
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
new skin = GetPlayerSkin(playerid);
    SetPlayerAttachedObject(playerid, GetSlot(playerid), PlayerInfo[playerid][pKosa], 2, SkinKosaOffSet[skin][0], SkinKosaOffSet[skin][1], SkinKosaOffSet[skin][2], SkinKosaOffSet[skin][3], SkinKosaOffSet[skin][4], SkinKosaOffSet[skin][5], SkinKosaOffSet[skin][8], SkinKosaOffSet[skin][8], SkinKosaOffSet[skin][8]);

    if(PlayerInfo[playerid][pTut] == 0)
    {
        TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_SVETLOPLAVA, "Dobrodosli na Balkan State Life RolePlay...");
SendClientMessage(playerid, COLOR_SVETLOPLAVA, "...postujte sva pravila servera i budite RolePlay igrac!Sada ispunite sljedece podatke...");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{00C0FF}Registracija - {F3FF02}Koji ste spol?", "Musko \nZensko", "U redu", "Odustani");
ClearChatbox(playerid, 2);
return 1;
    }
    if(AdminSpec[playerid] == 1)
{
    return 1;
}
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......

Master covece ti ne ucis da scriptas, ti samo trazis da drugi urade nesto za tebe, a to ti ne valja, imas trazilicu i trazi malo potrudi se