D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : warning 215: expression has no effect
D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : error 001: expected token: ";", but found "-string-"
D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : warning 215: expression has no effect
D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : fatal error 107: too many error messages on one line
Question
Papana
am incercat sa fac comanda /help
pe dialog
si imi da erori
ce am la on dialog response
[pawn] }
//==============================================================================
//|ONDIALOGRESPONSE: /help
//==============================================================================
if(dialogid == 6000)
{
if(response)
{
if(listitem==0)//ACCOUNT
{
SendClientMessage(playerid, COLOR_GRAD1,"[1]***/rules /stats /changepass /levelup /upgrade");
}
if(listitem==1)//GENERAL
{
SendClientMessage(playerid, COLOR_GRAD1,"[2]*** /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /opendoor(/od)");
SendClientMessage(playerid, COLOR_GRAD2,"[2]*** /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /askq /animlist /stopanim /fuel");
SendClientMessage(playerid, COLOR_GRAD2,"[2]*** (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /afk /radioonline");
SendClientMessage(playerid, COLOR_GRAD3,"[2]*** (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /aratabuletin");
}
if(listitem==2)//CHAT
{
SendClientMessage(playerid, COLOR_GRAD3,"[3]*** (/p)me (/cw)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /togooc /tognews /togfam /togpm /togphone");
}
if(listitem==3)//BANK
{
SendClientMessage(playerid, COLOR_GRAD4,"[4]*** /balance /withdraw /deposit /wiretransfer");
}
if(listitem==4)//OTHER
{
SendClientMessage(playerid, COLOR_GRAD6,"[5]*** /cellphonehelp /househelp /vehiclehelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp");
}
if(listitem==5)//FACTIONS
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /undercover /backup(/bk)");
SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /swat /authorizeswat /deauthorizeswat /drag /copuntie");
SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /backupclear(/bkc) /roadblock(/rb) /roadunblock(/rrb) /roadunblockall(/rrball) /showbadge /tracelastcall(/tlc) /weplicense");
}
if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
{
SendClientMessage(playerid, COLOR_YELLOW2, ":: FBI :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /agent /showid /friskinv");
SendClientMessage(playerid, COLOR_YELLOW2, ":: FBI :: /frisk /take /ticket (/gov)ernment /deliver /ram /drag /copuntie /authorizetactical /deauthorizetactical /tactical");
}
if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
SendClientMessage(playerid, COLOR_YELLOW2, ":: Military :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /wanted (/cu)ff (/ta)zer");
SendClientMessage(playerid, COLOR_YELLOW2, ":: Military :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /drag /copuntie");
}
if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
{
SendClientMessage(playerid, COLOR_YELLOW2, ":: HITMAN :: /portable");
}
if (gTeam[playerid] == 1 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SendClientMessage(playerid, COLOR_YELLOW2, ":: SAMD :: (/r)adio (/d)epartments /heal /duty /tracelastcall(/tlc)");
}
}
if(listitem==6)//JOB
{
if(PlayerInfo[playerid][pJob] == 1) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /find"); }
else if(PlayerInfo[playerid][pJob] == 2) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /free"); }
else if(PlayerInfo[playerid][pJob] == 3) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sex"); }
else if(PlayerInfo[playerid][pJob] == 4) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /selldrugs"); }
else if(PlayerInfo[playerid][pJob] == 5) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /dropcar"); }
else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /paper /papers /live /news [text]"); }
else if(PlayerInfo[playerid][pJob] == 7) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /repair /refill /duty"); }
else if(PlayerInfo[playerid][pJob] == 8) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /guard"); }
else if(PlayerInfo[playerid][pJob] == 9) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sellgun"); }
else if(PlayerInfo[playerid][pJob] == 10) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sellcar"); }
else if(PlayerInfo[playerid][pJob] == 11) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /heal"); }
else if(PlayerInfo[playerid][pJob] == 12) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /fight /boxstats"); }
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /fare"); }
else if(PlayerInfo[playerid][pJob] == 15) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /papers /bring /deliver"); }
else if(PlayerInfo[playerid][pJob] == 16) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /buyprods /sellprods /load"); }
else if(PlayerInfo[playerid][pJob] == 17) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /duty /sellpizza"); }
else if(PlayerInfo[playerid][pJob] == 18) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startharvest /stopharvest"); }
else if(PlayerInfo[playerid][pJob] == 19) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startdrugharvest /stopdrugharvest"); }
else if(PlayerInfo[playerid][pJob] == 20) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /smuggledrugs /selldrugsto"); }
else if(PlayerInfo[playerid][pJob] == 21) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startsweep /stopsweep"); }
else if(PlayerInfo[playerid][pJob] == 22) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /smugglemats"); }
else if(PlayerInfo[playerid][pJob] == 23) {
SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /creategun /buymats"); }
}
if(listitem==7)//ADMIN
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_YELLOW, ":: ADMIN :: (/a)dmin (/ah)elp");
}
}
}
}
//==============================================================================
//|ONDIALOGRESPONSE: JAIL - BAR - /drinks
//==============================================================================[/pawn]
comanda /help
[pawn]if(strcmp(cmd, "/help", true) == 0)
{
if(IsPlayerConnected(playerid))
{
ShowPlayerDialog(playerid,6000,DIALOG_STYLE_LIST,""color_cyan"HELP",""color_red"[1]"wh"ACCOUNT\n"color_red"[2]"wh"GENERAL\n"color_red"[3]"wh"CHAT\n"color_red"[4]"wh"BANK\n"color_red"[5]"wh"OTHER\n"color_red"[6]"wh"FACTION\n"color_red"[7]"wh"JOB\n"color_red"[8]"wh"ADMIN","Alege","Iesi");
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
}
return 1;
}[/pawn]
2 answers to this question
Recommended Posts