[POMOC] /AH i /gmh u dialogu neznam

Započeo #ov3rWhelming, Oktobar 17, 2012, 09:59:57 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: GF stari
Detaljan opis problema: ne mogu nikako napravit DIALOG za /ah i /gmh
Pa jel mi možete vi napravit ili objasnit di da to postavim?Molim admine da mi ne brišu novi sam u ovome i želim naučiti i ja mislim da je i vama bilo ovako kad ste počeli niste bili Pr0 tako da ne zajebavajte.Nego mi pomozite ako znate hvala :D
Dio skripte:   

if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
    if(IsPlayerConnected(playerid))
        {
SendClientMessage(playerid, COLOR_SKYBLUE,"_______________________________________");
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "*1* MODERATOR *** /check /checkic /setint /mute /kick /cnn /a(dmin) chat");
SendClientMessage(playerid, COLOR_GRAD1, "*1* MODERATOR *** /adminonduty /adminoffduty /eh /recon /banip");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_GRAD2,"*2* ADMIN *** /skydive /setteam /bigears /cnn /freeze /warn /ban /unfreeze /masked /gotobank /checkcoinfo /rtcbig");
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_GRAD3,"*3* ADMIN *** /noooc /jail /prison /mark /gotomark /gotols /gotoaero");
SendClientMessage(playerid, COLOR_GRAD4,"*3* ADMIN *** /gotolv /gotosf /gethere /gotocar /getcar /weatherall");
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
    SendClientMessage(playerid, COLOR_GRAD4,"*4* ADMIN *** /mole /edit /fuelcars /asellhouse /asellbiz /asellsbiz /setcostats");
    SendClientMessage(playerid, COLOR_GRAD4,"*4* ADMIN *** /sethp /setarmor /givemoney /money(sets money) /setstat");
}
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid, COLOR_GRAD5,"*** 1337+ *** /weather /makeleader (/orgids) /makeircadmin /tod /setskin /cnnn");
SendClientMessage(playerid, COLOR_GRAD5,"*** 1337+ *** /pozornicaup /pozornicadown /pozornicaC/O /event /bizo /fixveh");
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
SendClientMessage(playerid, COLOR_GRAD6,"*** 1338 *** Napravi vas nevidljivim na /admins");
SendClientMessage(playerid, COLOR_GRAD6,"*** 1338 *** /givegun /removewarn /houseint /gotoint /update /makegm /drift /givepremium");
SendClientMessage(playerid, COLOR_GRAD6,"** 1338 ** /votes /resetvotes /startvoting /endvoting /setcandidate /delitecandidate");
}
SendClientMessage(playerid, COLOR_SKYBLUE,"_______________________________________");
}
return 1;
}

i /GMH


if(strcmp(cmd, "/gmhelp", true) == 0 || strcmp(cmd, "/gmh", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
if (PlayerInfo[playerid][pGameMaster] >= 1)
{
SendClientMessage(playerid, COLOR_GRAD1,"*1* GAME MASTER *** /a(dmin) chat /gmonduty /gmoffduty /kick /check /gmm /goto [id] /unfreeze");
SendClientMessage(playerid, COLOR_GRAD1,"*1* GAME MASTER *** /gotogrotti /gotoparachute /banip");
}
if (PlayerInfo[playerid][pGameMaster] >= 2)
{
SendClientMessage(playerid, COLOR_GRAD2,"*2* GAME MASTER *** /cnn /gotoevent [1-8] /bigears /setint /gotoaero /gotopizza /gotobank /checkcoinfo");
SendClientMessage(playerid, COLOR_GRAD2,"*2* GAME MASTER *** /recon /rtcbig");
}
if (PlayerInfo[playerid][pGameMaster] >= 3)
{
SendClientMessage(playerid, COLOR_GRAD3,"*3* GAME MASTER *** /gotols /gotosf /gotolv /setteam /freeze /gotobay /gotoarea");
}
if (PlayerInfo[playerid][pGameMaster] >= 4)
{
    SendClientMessage(playerid, COLOR_GRAD4,"*4* GAME MASTER *** /mark /gotomark /entercar /skydive /jail /prison /gethere");
}
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
return 1;
}


Hvala puno ako neko zna pa da mi objasni


 
Slobodan maper.Mapam u HITNOM slučaju :)

Evo imas tutorial kako praviti strcat : http://balkan-samp.com/forum/index.php?topic=53807.0 :D

Ako bude sta zapelo pitaj ;)
Poslednja Izmena: Oktobar 17, 2012, 21:31:45 POSLE PODNE od _Iv@nCHe_

To je Stats ja trebam za /ah i /gmh neznam di da stavim Dialog_Style_Box
msm di da ga umetnem

EDIT:

AKO NEKO MOŽE NAPRAVIT JA SAM VAM KODOVE SVE DAO TO VAM JE ČAS POSLA..MOLIM VAS
Poslednja Izmena: Oktobar 18, 2012, 11:45:14 PRE PODNE od Mazko


 
Slobodan maper.Mapam u HITNOM slučaju :)

Vegas.

Čuj za stats, ono što sam ja tamo dao je čist primjer, pokušaj uraditi sam. Jer znam da nisi pokušao.

Pa izbaci mi errore jbt..kod onog

new string[128],string1[128],string2[128],string3[128],string4[128],string5[128], string6[128];

error mi string aj mi ubaci pa da vidim pa cu sam ovaj /gmh
ti mi samo ubaci za /ah jer mi errore ne mogu se riješit..


 
Slobodan maper.Mapam u HITNOM slučaju :)

Vegas.

Pošalji kako si radio, da ti pokažem gdje grješiš.


Hvala....

Ali neće mi stavim taj ADMIN_DIALOG I sve napravim tako i piše da mi je pawn presto raditi i windows traži problem..Može pomoć?
Poslednja Izmena: Oktobar 19, 2012, 11:35:29 PRE PODNE od Mazko


 
Slobodan maper.Mapam u HITNOM slučaju :)

#define DIALOG_ADMINHELP 8357
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
new info[2048];
if(IsPlayerConnected(playerid))
{
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(info, "===============================================[ Admin Help ]=============================================\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(info, "*1* MODERATOR *** /check /checkic /setint /mute /kick /cnn /a(dmin) chat\n", sizeof(info));
strcat(info, "*1* MODERATOR *** /adminonduty /adminoffduty /eh /recon /banip\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
strcat(info, "*2* ADMIN *** /skydive /setteam /bigears /cnn /freeze /warn /ban /unfreeze /masked /gotobank /checkcoinfo /rtcbig\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
strcat(info, "*3* ADMIN *** /noooc /jail /prison /mark /gotomark /gotols /gotoaero\n", sizeof(info));
strcat(info, "*3* ADMIN *** /gotolv /gotosf /gethere /gotocar /getcar /weatherall\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
    strcat(info, "*4* ADMIN *** /mole /edit /fuelcars /asellhouse /asellbiz /asellsbiz /setcostats\n", sizeof(info));
strcat(info, "*4* ADMIN *** /sethp /setarmor /givemoney /money(sets money) /setstat\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
strcat(info, "*** 1337+ *** /weather /makeleader (/orgids) /makeircadmin /tod /setskin /cnnn\n", sizeof(info));
strcat(info, "*** 1337+ *** /pozornicaup /pozornicadown /pozornicaC/O /event /bizo /fixveh\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
strcat(info, "*** 1338 *** Napravi vas nevidljivim na /admins\n", sizeof(info));
strcat(info, "*** 1338 *** /givegun /removewarn /houseint /gotoint /update /makegm /drift /givepremium\n", sizeof(info));
strcat(info, "** 1338 ** /votes /resetvotes /startvoting /endvoting /setcandidate /delitecandidate\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(info, "========================================================================================================\n\n", sizeof(info));
}
ShowPlayerDialog(playerid,DIALOG_ADMINHELP, DIALOG_STYLE_MSGBOX, "Admin Help", info, "OK", "");
}
}
return 1;
}
Poslednja Izmena: Oktobar 20, 2012, 09:12:46 PRE PODNE od ...Nikola...

I ja sam trebao za ovo Dialog oa da te pitam i meni treba

new info[2084]
Jel njega isto moram 2048??? kad u /gmh to radim?
i jel moram Dialog za GMH napravit? ili mogu u DIALOG_ADMINHELP
Poslednja Izmena: Oktobar 20, 2012, 09:15:43 PRE PODNE od Billic
╭∩╮(︶_︶)╭∩╮

<3 ANTE GOTOVINA <3
[/b]

#define DIALOG_GMHELP 8358
if(strcmp(cmd, "/gmhelp", true) == 0 || strcmp(cmd, "/gmh", true) == 0)
{
new info[2048];
if(IsPlayerConnected(playerid))
{
{
if (PlayerInfo[playerid][pGameMaster] >= 1)
{
strcat(info, "===============================================[ GameMaster Help ]=============================================\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pGameMaster] >= 1)
{
strcat(info, "*1* GAME MASTER *** /a(dmin) chat /gmonduty /gmoffduty /kick /check /gmm /goto [id] /unfreeze\n", sizeof(info));
strcat(info, "*1* GAME MASTER *** /gotogrotti /gotoparachute /banip\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pGameMaster] >= 2)
{
strcat(info, "*2* GAME MASTER *** /cnn /gotoevent [1-8] /bigears /setint /gotoaero /gotopizza /gotobank /checkcoinfo\n", sizeof(info));
strcat(info, "*2* GAME MASTER *** /recon /rtcbig\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pGameMaster] >= 3)
{
strcat(info, "*3* GAME MASTER *** /gotols /gotosf /gotolv /setteam /freeze /gotobay /gotoarea\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pGameMaster] >= 4)
{
strcat(info, "*4* GAME MASTER *** /mark /gotomark /entercar /skydive /jail /prison /gethere\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pGameMaster] >= 1)
{
strcat(info, "========================================================================================================\n\n", sizeof(info));
}
ShowPlayerDialog(playerid,DIALOG_GMHELP, DIALOG_STYLE_MSGBOX, "GameMaster Help", info, "OK", "");
}
}
return 1;
}
Poslednja Izmena: Oktobar 20, 2012, 09:09:24 PRE PODNE od ...Nikola...

Hvala nadam se da ce i Mazku poslužiti..
Edit: a za crvenu boju mi neće izbaci mi error onaj argument 2
stavim pored STRCAT, COLOR_RED i neće mi -.-
Poslednja Izmena: Oktobar 20, 2012, 09:21:36 PRE PODNE od Billic
╭∩╮(︶_︶)╭∩╮

<3 ANTE GOTOVINA <3
[/b]


Uredu hvala...
╭∩╮(︶_︶)╭∩╮

<3 ANTE GOTOVINA <3
[/b]