Help in Dialog Response
#1

Hi again, this time a problem with dialog response, this is my OnPlayerDialogResponse


Quote:

if(dialogid == 6
{
if (response == 0)
{
return 1;
}
if (response == 1)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"General Commands","{FFFFFF}/death /911 /engineon /engineoff /lightson /lightsoff /bootup /bootdown /bonnetup /bonnetdown /me /w\n/cw /pm /laseron /laseroff /lasercol /buyveh /medic /mechanic /weapondealer /drugdealer /taxi /bizowners /smokeweed /injectheroin\n/placehit /untie /cutrope /robskill /robstore /inventory /credits /sausage /givecash /givegun\n/avshelp /hskin /gps \n{FF0000}/rules and /pc","Ok","Cancel");
}
case 1:
{
if(gTeam[playerid] == TEAM_COP && GetPlayerSkin(playerid) != 286)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}POLICE COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_ARMY)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}ARMY COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_CIA)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}CIA COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n/tackle\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_COP && GetPlayerSkin(playerid) == 286)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}FBI COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_CARFIX)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}MECHANIC COMMANDS","{FFFFFF}/repair - Repairs someone elses vehicle.\n/repairme - Repairs your own vehicle.\n/setprice - Sets your price.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_MEDIC)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}MEDIC COMMANDS","{FFFFFF}/heal - Heals a player.\n/healme - Heals yourself.\n/cure - Cures a player.\n/cureme - Cures yourself.\n/setprice - Sets your price.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_RAPIST)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}RAPIST COMMANDS","{FFFFFF}/rape - Rapes a player and infects them.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_DRGDEL)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}DRUG DEALER COMMANDS","{FFFFFF}/giveweed - Gives a player weed.\n/giveheroin - Gives a player heroin.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_GUNDEL)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}WEAPON DEALER COMMANDS","{FFFFFF}/showweapons - Shows a player your weapon list.\n/sellweapon - Sells a player a weapon.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_HITMAN)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}HITMAN COMMANDS","{FFFFFF}/hitlist - Shows the list of hits.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_KIDNAP)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}KIDNAPPER COMMANDS","{FFFFFF}/kidnap - Kidnaps a player.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_THIEF)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}THIEF COMMANDS","{FFFFFF}/rob - Robs a player.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_CARJACK)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}CAR JACKER COMMANDS","{FFFFFF}/sellcar - Sells a stolen car to the Shipyard.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_TERRO)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}TERRORIST COMMANDS","{FFFFFF}/blowcar - Blows up your car.\n/blowup - Blows up a building.\n/tlevel - Shows your Terrorism Level.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
if(gTeam[playerid] == TEAM_DRIVER)
{
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}DRIVER COMMANDS","{FFFFFF}/setprice - Set the price of your services.\nYou have no other specific commands. Get in a taxi vehicle to go on duty.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
}
}
case 2:
{
new info[512];
strcat(info, "/v /tow /eject1 /ejectall\n", sizeof(info));
strcat(info, "/vlock /valarm /fuel /trunk /kph /mph /clearmods /sellv /givecarkeys /trackcar\n", sizeof(info));
if(IsPlayerAdmin(playerid))
{
strcat(info, "/addv /editv /setfuel /rac (respawnallcars) /rtc (respawnthiscar)\n", sizeof(info));
strcat(info, "/adddealership /deletedealership /movedealership /gotodealership\n", sizeof(info));
strcat(info, "/addfuelstation /deletefuelstation /movefuelstation /gotofuelstation", sizeof(info));
}
ShowPlayerDialog(playerid, 69, DIALOG_STYLE_MSGBOX, "Advanced Vehicle System Help", info, "OK", "");
}
case 3:
{
ShowPlayerDialog(playerid, 70, DIALOG_STYLE_MSGBOX, "Advanced House System Help", "/buyhouse- to buy a house. \n /housemenu- to see house menu. \n /evict to evict your house.", "OK", "");
}
case 4:
{
ShowPlayerDialog(playerid, 71, DIALOG_STYLE_MSGBOX, "Advanced House System Help", "/crb- to create a roadblock \n /rub- to remove the roadblock when you are close to it. \n /ruball- to remove all roadblocks created by you.", "OK", "");
}
case 5:
{
new lstring[2566];
strcat(lstring,""COLOR_RED"VIP Level 1:\n\n"cwhite"/vbike - to spawn nrg\n/vcar - to spawn vip car\n/vheli - to spawn maverick\n/vheal - to heal yourself\n/vbcmds - to see vip base cmd\n\n\n");
strcat(lstring,""COLOR_RED"VIP Level 2:\n"cwhite"/vplane - to spawn vip plane for yourself\n/vpbonus - to heal and give 1 ammo of RPG to nearest players\n/vnos to activate nitros\naccess to level 1 vip commands\n\n\n");
strcat(lstring,""COLOR_RED"VIP Level 3:\n"cwhite"access to all vip commands\n/vfix - to fix your vehicle\n/vtime - to set your time\n/vskin - to set your skin\n/varmour - to armour yourself\n");
ShowPlayerDialog(playerid, 72,DIALOG_STYLE_MSGBOX,"VIP Commands",lstring,"Close","");
}
}
}
return 1;
}

Everything to me seems fine. but got these

Quote:

D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13667) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13667) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13667) : warning 215: expression has no effect
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13667) : error 001: expected token: ";", but found "-identifier-"
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13667) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

I tried to fing the problem, but i found nothing.
Can anyone tell me where is the problem?

Thanks in advanced and sorry for bad english.
Reply
#2

Anyone, i am confused?
Reply
#3

Can you post line "13667" only ?
Reply
#4

Ohh , problem found it is in case 5. [thanks to xVIP3Rx for the idea]

Now how can i fix that please.
Can some one suggest me a different way to use this.
Reply
#5

Post that line so we can tell you how to fix..
And what do you mean by a different way to do this ? you're using a switch and I think it's good.. If that's what you mean
My suggestion is to put all the dialog id"s" in a switch instead of "If/else if"..
Reply
#6

Quote:

strcat(lstring,""COLOR_RED"VIP Level 1:\n\n"cwhite"/vbike - to spawn nrg\n/vcar - to spawn vip car\n/vheli - to spawn maverick\n/vheal - to heal yourself\n/vbcmds - to see vip base cmd\n\n\n");

This is 13667 and from different way i mean from strcat or whatever that is.
Reply
#7

PHP код:
strcat(lstring,""COLOR_RED"VIP Level 1:\n\n"cwhite"/vbike - to spawn nrg\n/vcar - to spawn vip car\n/vheli - to spawn maverick\n/vheal - to heal yourself\n/vbcmds - to see vip base cmd\n\n\n");
strcat(lstring,""COLOR_RED"VIP Level 2:\n"cwhite"/vplane - to spawn vip plane for yourself\n/vpbonus - to heal and give 1 ammo of RPG to nearest players\n/vnos to activate nitros\naccess to level 1 vip commands\n\n\n");
strcat(lstring,""COLOR_RED"VIP Level 3:\n"cwhite"access to all vip commands\n/vfix - to fix your vehicle\n/vtime - to set your time\n/vskin - to set your skin\n/varmour - to armour yourself\n"); 
thats just wrong, this "COLOR_RED".
if you want to use color defines, you have to do it like this:

strcat(lstring,""{#COLOR_RED}"VIP Lev..andso on");

you're missing the hashtags ('#')

that'll work if your colors are defined like this:
#define COL_RED "{F81414}"
Reply
#8

Quote:
Originally Posted by CutX
Посмотреть сообщение
PHP код:
strcat(lstring,""COLOR_RED"VIP Level 1:\n\n"cwhite"/vbike - to spawn nrg\n/vcar - to spawn vip car\n/vheli - to spawn maverick\n/vheal - to heal yourself\n/vbcmds - to see vip base cmd\n\n\n");
strcat(lstring,""COLOR_RED"VIP Level 2:\n"cwhite"/vplane - to spawn vip plane for yourself\n/vpbonus - to heal and give 1 ammo of RPG to nearest players\n/vnos to activate nitros\naccess to level 1 vip commands\n\n\n");
strcat(lstring,""COLOR_RED"VIP Level 3:\n"cwhite"access to all vip commands\n/vfix - to fix your vehicle\n/vtime - to set your time\n/vskin - to set your skin\n/varmour - to armour yourself\n"); 
thats just wrong, this "COLOR_RED".
if you want to use color defines, you have to do it like this:

strcat(lstring,""#COLOR_RED"VIP Lev..andso on");

you're missing the hashtags ('#')
What If he defined them as ?
pawn Код:
#define COLOR_RED {FF00FF}
he won't have to use a hashtag..

OT: I've re-scripted your codes and replaces the "If/else" to a switch as an example to learn from...
pawn Код:
if(dialogid == 6)
{
    if (response == 0) return 1;

    switch(listitem)
    {
        case 0: ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"General Commands","{FFFFFF}/death /911 /engineon /engineoff /lightson /lightsoff /bootup /bootdown /bonnetup /bonnetdown /me /w\n/cw /pm /laseron /laseroff /lasercol /buyveh /medic /mechanic /weapondealer /drugdealer /taxi /bizowners /smokeweed /injectheroin\n/placehit /untie /cutrope /robskill /robstore /inventory /credits /sausage /givecash /givegun\n/avshelp /hskin /gps \n{FF0000}/rules and /pc","Ok","Cancel");
        case 1:
        {
            switch(gTeam[playerid])
            {
                case TEAM_COP:
                {
                    if(GetPlayerSkin(playerid) == 286)
                    {
                        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}FBI COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");
                        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                        SendClientMessageToAllAdmins(string);
                    }
                    else
                    {
                        ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}POLICE COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");

                        format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                        format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                        SendClientMessageToAllAdmins(string);
                    }
                }
                case TEAM_ARMY:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}ARMY COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n@ (message) - Sends a message through the police radio.","Ok","Cancel");

                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_CIA:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}CIA COMMANDS","{FFFFFF}/cuff - Cuffs a player.\n/uncuff - Uncuffs a player.\n/pu - Asks a suspect to pull over.\n/ticket - Issues a ticket to a player.\n/suspect - Gives a player a wanted level.\n/search - Searches a player.\n/m - Megaphone.\n/arrest - Arrests a player.\n/detain - Detains a player.\n/dropoff - Arrests a detained player.\n/tackle\n@ (message) - Sends a message through the police radio.","Ok","Cancel");

                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_CARFIX
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}MECHANIC COMMANDS","{FFFFFF}/repair - Repairs someone elses vehicle.\n/repairme - Repairs your own vehicle.\n/setprice - Sets your price.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");

                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_MEDIC:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}MEDIC COMMANDS","{FFFFFF}/heal - Heals a player.\n/healme - Heals yourself.\n/cure - Cures a player.\n/cureme - Cures yourself.\n/setprice - Sets your price.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_RAPIST:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}RAPIST COMMANDS","{FFFFFF}/rape - Rapes a player and infects them.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_DRGDEL;
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}DRUG DEALER COMMANDS","{FFFFFF}/giveweed - Gives a player weed.\n/giveheroin - Gives a player heroin.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_GUNDEL:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}WEAPON DEALER COMMANDS","{FFFFFF}/showweapons - Shows a player your weapon list.\n/sellweapon - Sells a player a weapon.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_HITMAN:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}HITMAN COMMANDS","{FFFFFF}/hitlist - Shows the list of hits.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_KIDNAP:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}KIDNAPPER COMMANDS","{FFFFFF}/kidnap - Kidnaps a player.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_THIEF:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}THIEF COMMANDS","{FFFFFF}/rob - Robs a player.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_CARJACK:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}CAR JACKER COMMANDS","{FFFFFF}/sellcar - Sells a stolen car to the Shipyard.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_TERRO:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}TERRORIST COMMANDS","{FFFFFF}/blowcar - Blows up your car.\n/blowup - Blows up a building.\n/tlevel - Shows your Terrorism Level.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
                case TEAM_DRIVER:
                {
                    ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_S TYLE_MSGBOX,"{0000FF}DRIVER COMMANDS","{FFFFFF}/setprice - Set the price of your services.\nYou have no other specific commands. Get in a taxi vehicle to go on duty.\nYou can also see a list of General Commands with /gcommands.","Ok","Cancel");
                    format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );
                    format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /commands.",PlayerName(playerid),playerid);
                    SendClientMessageToAllAdmins(string);
                }
            }
        }
        case 2:
        {
            new info[512];
            strcat(info, "/v /tow /eject1 /ejectall\n");
            strcat(info, "/vlock /valarm /fuel /trunk /kph /mph /clearmods /sellv /givecarkeys /trackcar\n");
            if(IsPlayerAdmin(playerid))
            {
                strcat(info, "/addv /editv /setfuel /rac (respawnallcars) /rtc (respawnthiscar)\n");
                strcat(info, "/adddealership /deletedealership /movedealership /gotodealership\n");
                strcat(info, "/addfuelstation /deletefuelstation /movefuelstation /gotofuelstation");
            }
            ShowPlayerDialog(playerid, 69, DIALOG_STYLE_MSGBOX, "Advanced Vehicle System Help", info, "OK", "");
        }
        case 3: ShowPlayerDialog(playerid, 70, DIALOG_STYLE_MSGBOX, "Advanced House System Help", "/buyhouse- to buy a house. \n /housemenu- to see house menu. \n /evict to evict your house.", "OK", "");
        case 4: ShowPlayerDialog(playerid, 71, DIALOG_STYLE_MSGBOX, "Advanced House System Help", "/crb- to create a roadblock \n /rub- to remove the roadblock when you are close to it. \n /ruball- to remove all roadblocks created by you.", "OK", "");
        case 5:
        {
            new lstring[750];
            strcat(lstring,""COLOR_RED"VIP Level 1:\n\n"cwhite"/vbike - to spawn nrg\n/vcar - to spawn vip car\n/vheli - to spawn maverick\n/vheal - to heal yourself\n/vbcmds - to see vip base cmd\n\n\n");
            strcat(lstring,""COLOR_RED"VIP Level 2:\n"cwhite"/vplane - to spawn vip plane for yourself\n/vpbonus - to heal and give 1 ammo of RPG to nearest players\n/vnos to activate nitros\naccess to level 1 vip commands\n\n\n");
            strcat(lstring,""COLOR_RED"VIP Level 3:\n"cwhite"access to all vip commands\n/vfix - to fix your vehicle\n/vtime - to set your time\n/vskin - to set your skin\n/varmour - to armour yourself\n");
            ShowPlayerDialog(playerid, 72,DIALOG_STYLE_MSGBOX,"VIP Commands",lstring,"Close","");
        }
    }
    return 1;
}
Tell me if there was any errors/warnings with the lines with errors..
Reply
#9

Quote:

D:\Sa-mp server\gamemodes\SFCRRPG.pwn(1352 : error 075: input line too long (after substitutions)
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13546) : error 075: input line too long (after substitutions)
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13554 -- 13555) : error 029: invalid expression, assumed zero
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(1357 : error 001: expected token: ":", but found ";"
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(1357 : error 036: empty statement
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13644) : error 014: invalid statement; not in switch
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13644) : warning 215: expression has no effect
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13644) : error 001: expected token: ";", but found ":"
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13644) : error 029: invalid expression, assumed zero
D:\Sa-mp server\gamemodes\SFCRRPG.pwn(13644) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


9 Errors.

I got these after some fixes like DIALOG_S TYLE etc.
Reply
#10

OFFTOPIC: How to post in those quotes?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)