SA-MP Forums Archive
Pawn compiler not responding when adding this cmd! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pawn compiler not responding when adding this cmd! (/showthread.php?tid=537184)



Pawn compiler not responding when adding this cmd! - IamPRO - 14.09.2014

Hello my pawn complier hangs when i add this cmd to my gamemode.
pawn Code:
CMD:ranks(playerid,params[])
{
    new str[500];
    strcat(str,"{FFFFFF}The server ranks are as follows :-\n\nRank 1(0 Score) - "COL_GL"Newbie."COL_WHITE"\nTool Box | default weapons.\nRank 2(1000 score) - "COL_GL"Hunter\n{FFFFFF}\nTool Box + Weaps and laser | default weaps + Grenade.\nRank 3(2000 score) - "COL_GL"TITAN\n{FFFFFF}\nTool Box + Weaps & laser + flaming hands | default weaps + Grenade + Sniper rifle.\nRank 4(3000 score) - "COL_GL"Warlord\n\
    {FFFFFF}\nTool Box + weaps & laser + flaming hands + bandana | default weaps + Grenade + Sniper rifle + Chainsaw.\nRank 5(4000 score) - "
COL_GL"Slender\n{FFFFFF}\nTool Box + Weaps & laser + Flaming hands + bandana + parrot | default weaps + Grenade + Sniper Rifle + Chainsaw + Fire Extinguisher.\nRank 6(5000 score) - "COL_GL"Ghosts\n\
    {FFFFFF}Tool Box + Weaps & laser + Flaming hands + bandana + parrot + shield | default weaps + Grenade + Sniper Rifle + Chainsaw + RPG."
);
    ShowPlayerDialog(playerid,6733,DIALOG_STYLE_MSGBOX,"Server Ranks!",str,"OK","");
    return 1;
}
Please help me.


Re: Pawn compiler not responding when adding this cmd! - biker122 - 14.09.2014

pawn Code:
CMD:ranks(playerid,params[])
{
    new str[600];
    strcat(str,"{FFFFFF}The server ranks are as follows :-\n\nRank 1(0 Score) - "COL_GL"Newbie."COL_WHITE"\nTool Box | default weapons.\nRank 2(1000 score) - "COL_GL"Hunter\n{FFFFFF}\nTool Box + Weaps and laser | default weaps + Grenade.\nRank 3(2000 score) - "COL_GL"TITAN\n{FFFFFF}\nTool Box + Weaps & laser + flaming hands | default weaps + Grenade + Sniper rifle.\nRank 4(3000 score) - "COL_GL"Warlord\n");
    strcat(str,"{FFFFFF}\nTool Box + weaps & laser + flaming hands + bandana | default weaps + Grenade + Sniper rifle + Chainsaw.\nRank 5(4000 score) - "COL_GL"Slender\n{FFFFFF}\nTool Box + Weaps & laser + Flaming hands + bandana + parrot | default weaps + Grenade + Sniper Rifle + Chainsaw + Fire Extinguisher.\nRank 6(5000 score) - "COL_GL"Ghosts\n");
    strcat(str,"{FFFFFF}Tool Box + Weaps & laser + Flaming hands + bandana + parrot + shield | default weaps + Grenade + Sniper Rifle + Chainsaw + RPG.");
    ShowPlayerDialog(playerid,6733,DIALOG_STYLE_MSGBOX,"Server Ranks!",str,"OK","");
    return 1;
}



Re: Pawn compiler not responding when adding this cmd! - IamPRO - 14.09.2014

Quote:
Originally Posted by biker122
View Post
pawn Code:
CMD:ranks(playerid,params[])
{
    new str[600];
    strcat(str,"{FFFFFF}The server ranks are as follows :-\n\nRank 1(0 Score) - "COL_GL"Newbie."COL_WHITE"\nTool Box | default weapons.\nRank 2(1000 score) - "COL_GL"Hunter\n{FFFFFF}\nTool Box + Weaps and laser | default weaps + Grenade.\nRank 3(2000 score) - "COL_GL"TITAN\n{FFFFFF}\nTool Box + Weaps & laser + flaming hands | default weaps + Grenade + Sniper rifle.\nRank 4(3000 score) - "COL_GL"Warlord\n");
    strcat(str,"{FFFFFF}\nTool Box + weaps & laser + flaming hands + bandana | default weaps + Grenade + Sniper rifle + Chainsaw.\nRank 5(4000 score) - "COL_GL"Slender\n{FFFFFF}\nTool Box + Weaps & laser + Flaming hands + bandana + parrot | default weaps + Grenade + Sniper Rifle + Chainsaw + Fire Extinguisher.\nRank 6(5000 score) - "COL_GL"Ghosts\n");
    strcat(str,"{FFFFFF}Tool Box + Weaps & laser + Flaming hands + bandana + parrot + shield | default weaps + Grenade + Sniper Rifle + Chainsaw + RPG.");
    ShowPlayerDialog(playerid,6733,DIALOG_STYLE_MSGBOX,"Server Ranks!",str,"OK","");
    return 1;
}
Thank you it works.