Omg Not working.
Server Consol Start :
Quote:
L 03/19/2009 - 19:04:14: [SM] Fatal error encountered parsing translation file "
rzfp.phrases.txt"
L 03/19/2009 - 19:04:14: [SM] Error (line 131, column 4: Line contained too ma
ny invalid tokens
|
Quote:
L 03/19/2009 - 19:06:04: [SM] Plugin encountered error 4: Invalid parameter or p
arameter type
L 03/19/2009 - 19:06:04: [SM] Native "Format" reported: Language phrase "Sniper_
Head" not found
L 03/19/2009 - 19:06:04: [SM] Displaying call stack trace for plugin "(0.4.2) tr
anslate.smx":
L 03/19/2009 - 19:06:04: [SM] [0] Line 1843, (0.4.2) translate.sp::function_d
isplayInfo()
L 03/19/2009 - 19:06:04: [SM] [1] Line 1402, (0.4.2) translate.sp::timer_SetP
layers()
|
Compile:
Quote:
// (0.4.2) translate.sp(1843) : warning 217: loose indentation
// (0.4.2) translate.sp(1850) : warning 217: loose indentation
|
Script:
PHP Code:
public function_displayInfo(TFClassType:class, client)
{
new Handle:panel = CreatePanel();
switch(class)
{
case TFClass_Sniper:
{
decl String:title[128], String:help1[128], String:help2[128], String:help3[128], String:help4[128], String:help5[128], String:help6[128];
(1843) Format(title, sizeof(title), "%t", "Sniper_Head");
Format(help1, sizeof(help1), "%t", "Sniper_Help_1");
Format(help2, sizeof(help2), "%t", "Sniper_Help_2");
Format(help3, sizeof(help3), "%t", "Sniper_Help_3");
Format(help4, sizeof(help4), "%t", "Sniper_Help_4");
Format(help5, sizeof(help5), "%t", "Sniper_Help_5");
Format(help6, sizeof(help6), "%t", "Sniper_Help_6");
SetPanelTitle(panel, title);
DrawPanelText(panel, "---------------------------------");
DrawPanelText(panel, help1);
DrawPanelText(panel, help2);
DrawPanelText(panel, help3);
DrawPanelText(panel, help4);
DrawPanelText(panel, help5);
DrawPanelText(panel, help6);
}
PHP Code:
(1331) public Action:timer_SetPlayers(Handle:timer, any:client)
{
.
.
.
if (team == SUR)
{
(1402) function_displayInfo(class, client);
}
}
}
}
return Plugin_Continue;
}
Most likely the problem is loose indentation. help