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
Evo imas tutorial kako praviti strcat : http://balkan-samp.com/forum/index.php?topic=53807.0 :D
Ako bude sta zapelo pitaj ;)
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
ÄŒ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..
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ć?
#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;
}
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
#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;
}
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 -.-
{F81414}
ovo ti je crvena, ovako bolje stavljas ne mozes te obicne samo 0.3c boje u dialogu
Uredu hvala...