[POMOC]Dialog

Započeo Filipett, April 01, 2011, 20:24:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Skripta koju koristim: GTARP editovan
Detaljan opis problema: Hteo sam da napravim /ah komandu u dialogu i evo sta je ispalo:
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(4832) : warning 219: local variable "money" shadows a variable at a preceding level
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(17219) : warning 219: local variable "money" shadows a variable at a preceding level
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(25117) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(32392) : warning 219: local variable "money" shadows a variable at a preceding level
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(35258) : warning 219: local variable "money" shadows a variable at a preceding level
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(35296) : warning 219: local variable "money" shadows a variable at a preceding level
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(36438) : error 075: input line too long (after substitutions)
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(36439) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(36439) : error 029: invalid expression, assumed zero
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(36439) : warning 215: expression has no effect
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(36439) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\SPC\Desktop\[PG]1Roleplay.pwn(36439) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Dio skripte: ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Moderator","/fly /check /setint /setvw /mute /kick \n /masked /unfreeze /learn /ban /slap /goto /a\n (/ao)oc /name /setskin /ajail /freeze /spec /checkweapons\n Lvl 2 Admin"," /skydive /noooc /setteam /bigears /respawnthiscar(/rtc)\n  /setjob /update /gotols /gotolv /gotosf\n /gotoburg /gotobolnica /gotocross /gotorace  /gotohell\n Lvl 3 Admin: /cnnn /fourdive /prison /unprison /aunlock /fuelcars\n /edit /vehslap /mark /gotomark /gethere /oldcar\n /gotocar /getcar /setage /respawnallcars /respawnrentbikes /respawnrentcars\n Lvl 4 Admin: /fixveh /mole /logout /logoutpl /logoutall /asellhouse\n /asellbiz /sellsbiz /setchamp /mk /destroycars /sethp /setarmor\n /forceskin /explode /supervehslap /unban /unbanip)\n Head Admin:  /weather /weatherall /makeircadmin /makeadmin\n /makeleader /bizentrance /sbizentrance /asellcar /setstat /money(sets money)\n /givemoney /givegun /crash /changename /houseentrance  /tod /startlotto\n Vlasnik: /apark /agl","Ok","Ok");

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Preduga linija... nemoze sve u jednu stat  :D


poznaticovik

Citat: [InfernoGaming] N1n0 poslato April 01, 2011, 20:27:51 POSLE PODNE
Citat: K4Я!K3 poslato April 01, 2011, 20:27:09 POSLE PODNE
Preduga linija... nemoze sve u jednu stat  :D
Nemoj da lupas [cenzura]osti! :-\

Pa ne može toliko veliko bit , može radit sa cordstringovima

Citat: [InfernoGaming] N1n0 poslato April 01, 2011, 20:27:51 POSLE PODNE
Citat: K4Я!K3 poslato April 01, 2011, 20:27:09 POSLE PODNE
Preduga linija... nemoze sve u jednu stat  :D
Nemoj da lupas gluposti! :-\

mozda.. ili ne :D ajmo rec da si u pravu al opet nevalja tako radit zar nije lakse to sve stavit u 2 ili vise?  ???

Citat: K4Я!K3 poslato April 01, 2011, 20:30:21 POSLE PODNE
Citat: [InfernoGaming] N1n0 poslato April 01, 2011, 20:27:51 POSLE PODNE
Citat: K4Я!K3 poslato April 01, 2011, 20:27:09 POSLE PODNE
Preduga linija... nemoze sve u jednu stat  :D
Nemoj da lupas [cenzura]osti! :-\

mozda.. ili ne :D ajmo rec da si u pravu al opet nevalja tako radit zar nije lakse to sve stavit u 2 ili vise?  ???

Kad tako stavim onda ima samo nprimer:
Vlasnik: /apark /agl
A ovo ostalo nema

poznaticovik

Citat: SteeL poslato April 01, 2011, 20:31:56 POSLE PODNE
Citat: K4Я!K3 poslato April 01, 2011, 20:30:21 POSLE PODNE
Citat: [InfernoGaming] N1n0 poslato April 01, 2011, 20:27:51 POSLE PODNE
Citat: K4Я!K3 poslato April 01, 2011, 20:27:09 POSLE PODNE
Preduga linija... nemoze sve u jednu stat  :D
Nemoj da lupas [cenzura]osti! :-\

mozda.. ili ne :D ajmo rec da si u pravu al opet nevalja tako radit zar nije lakse to sve stavit u 2 ili vise?  ???

Kad tako stavim onda ima samo nprimer:
Vlasnik: /apark /agl
A ovo ostalo nema

pa staviš

if(PlayerInfo[playerid][pAdmin] >= 1340)

Mozete mi vi ovo staviti u dialog??:
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
    SendClientMessage(playerid, COLOR_WHITE, "*** DUZNOST *** /adminduty");
SendClientMessage(playerid, COLOR_GRAD1, "*** Lvl 1 Moderator ***  /fly /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn");
SendClientMessage(playerid, COLOR_GRAD1, "*** Lvl 1 Moderator *** /ban /slap /goto /a (/ao)oc /name /setskin /ajail /freeze /spec /checkweapons");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_GRAD2,"*** Lvl 2 Admin *** /skydive /noooc /setteam /bigears /respawnthiscar(/rtc)  /setjob /update");
SendClientMessage(playerid, COLOR_GRAD2,"*** Lvl 2 Admin *** /gotols /gotolv /gotosf /gotoburg /gotobolnica /gotocross /gotorace  /gotohell");
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_GRAD3,"*** Lvl 3 Admin *** /cnnn /fourdive /prison /unprison /aunlock /fuelcars /edit /vehslap");
SendClientMessage(playerid, COLOR_GRAD4,"*** Lvl 3 Admin *** /mark /gotomark /gethere /oldcar /gotocar /getcar /setage");
SendClientMessage(playerid, COLOR_GRAD4,"*** Lvl 3 Admin *** /respawnallcars /respawnrentbikes /respawnrentcars ");
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
    SendClientMessage(playerid, COLOR_GRAD4,"*** Lvl 4 Admin *** /fixveh /mole /logout /logoutpl /logoutall /asellhouse /asellbiz /sellsbiz /setchamp /mk");
    SendClientMessage(playerid, COLOR_GRAD4,"*** Lvl 4 Admin *** /destroycars /sethp /setarmor /forceskin /explode /supervehslap /unban /unbanip");
}
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid, COLOR_GRAD5,"*** Head Admin ***  /weather /weatherall /makeircadmin /makeadmin /makeleader /bizentrance /sbizentrance");
SendClientMessage(playerid, COLOR_GRAD5,"*** Head Admin *** /asellcar /setstat /money(sets money)");
SendClientMessage(playerid, COLOR_GRAD5,"*** Head Admin *** /givemoney /givegun /crash /changename /houseentrance /housexit /tod /startlotto");
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
SendClientMessage(playerid, COLOR_GRAD6,"*** B-D Vlasnik *** /apark /agl");
}
}
return 1;
}


Citat: SteeL poslato April 01, 2011, 20:38:46 POSLE PODNE
Mozete mi vi ovo staviti u dialog??:
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
    SendClientMessage(playerid, COLOR_WHITE, "*** DUZNOST *** /adminduty");
SendClientMessage(playerid, COLOR_GRAD1, "*** Lvl 1 Moderator ***  /fly /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn");
SendClientMessage(playerid, COLOR_GRAD1, "*** Lvl 1 Moderator *** /ban /slap /goto /a (/ao)oc /name /setskin /ajail /freeze /spec /checkweapons");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_GRAD2,"*** Lvl 2 Admin *** /skydive /noooc /setteam /bigears /respawnthiscar(/rtc)  /setjob /update");
SendClientMessage(playerid, COLOR_GRAD2,"*** Lvl 2 Admin *** /gotols /gotolv /gotosf /gotoburg /gotobolnica /gotocross /gotorace  /gotohell");
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_GRAD3,"*** Lvl 3 Admin *** /cnnn /fourdive /prison /unprison /aunlock /fuelcars /edit /vehslap");
SendClientMessage(playerid, COLOR_GRAD4,"*** Lvl 3 Admin *** /mark /gotomark /gethere /oldcar /gotocar /getcar /setage");
SendClientMessage(playerid, COLOR_GRAD4,"*** Lvl 3 Admin *** /respawnallcars /respawnrentbikes /respawnrentcars ");
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
    SendClientMessage(playerid, COLOR_GRAD4,"*** Lvl 4 Admin *** /fixveh /mole /logout /logoutpl /logoutall /asellhouse /asellbiz /sellsbiz /setchamp /mk");
    SendClientMessage(playerid, COLOR_GRAD4,"*** Lvl 4 Admin *** /destroycars /sethp /setarmor /forceskin /explode /supervehslap /unban /unbanip");
}
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid, COLOR_GRAD5,"*** Head Admin ***  /weather /weatherall /makeircadmin /makeadmin /makeleader /bizentrance /sbizentrance");
SendClientMessage(playerid, COLOR_GRAD5,"*** Head Admin *** /asellcar /setstat /money(sets money)");
SendClientMessage(playerid, COLOR_GRAD5,"*** Head Admin *** /givemoney /givegun /crash /changename /houseentrance /housexit /tod /startlotto");
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
SendClientMessage(playerid, COLOR_GRAD6,"*** B-D Vlasnik *** /apark /agl");
}
}
return 1;
}

Zasto trazis da ti neko odradi i onda posle kad ti zatreba nesto slicno ponovo da pitas? ;)
Bolje to nauci, sve hocete na gotovo! :-\