[pawn]#include a_samp
#define FILTERSCRIPT
#define red 0xF60000AA
forward Changecmds();
forward ChangeTextcmds (text[]);
new Text:Textcmds;
new TextcmdsCount = 0;
#define gamemodecount 11
#define ms 5000
#define websitecount 11
#define ms 5000
#define cmdscount 11
#define ms 5000
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\"Váltakozó textdraw betöltve\");
print(\"--------------------------------------\\n\");
Textcmds = TextDrawCreate(21.000, 319.000, \"/help\");
TextDrawBackgroundColor(Textcmds, 255);
TextDrawFont(Textcmds, 3);
TextDrawLetterSize(Textcmds, 0.439999, 2.000000);
TextDrawColor(Textcmds, -1);
TextDrawSetOutline(Textcmds, 2);
TextDrawSetProportional(Textcmds, 1);
SetTimer(\"Changecmds\",ms,5000);
return 1;
}
public OnFilterScriptExit()
{
TextDrawDestroy(Textcmds);
return 1;
}
public OnPlayerConnect(playerid)
{
// SendClientMessage(playerid, red,\"A parancsok a pénz alatt!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Textcmds);
return 1;
}
public ChangeTextcmds(text[])
{
TextDrawHideForAll(Textcmds);
TextDrawSetString(Textcmds,text);
TextDrawShowForAll(Textcmds);
return 1;
}
public Changecmds()
{
if(TextcmdsCount > cmdscount) TextcmdsCount = 0;
switch(TextcmdsCount)
{
case 0:
{
ChangeTextcmds(\"/help\");
}
case 1:
{
ChangeTextcmds(\"/teles\");
}
case 2:
{
ChangeTextcmds(\"/cmd\");
}
case 3:
{
ChangeTextcmds(\"/snow\");
}
case 4:
{
ChangeTextcmds(\"/(kocsineve)\");
}
case 5:
{
ChangeTextcmds(\"samp-fun.ucoz.hu\");
}
case 6:
{
ChangeTextcmds(\"/help\");
}
case 7:
{
ChangeTextcmds(\"Admin tgf:on\");
}
/* case 8:
{
ChangeTextcmds(\"Vip tgf:on\");
}*/
}
TextcmdsCount++;
}[/pawn]
[pawn]C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(7) : error 001: expected token: \")\", but found \"&\"
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(7) : error 001: expected token: \";\", but found \"&\"
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(55) : error 001: expected token: \")\", but found \"&\"
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(55) : error 029: invalid expression, assumed zero
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(60) : error 010: invalid function or declaration
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(69) : error 035: argument type mismatch (argument 1)
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(73) : error 035: argument type mismatch (argument 1)
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(77) : error 035: argument type mismatch (argument 1)
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(81) : error 035: argument type mismatch (argument 1)
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(85) : error 035: argument type mismatch (argument 1)
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(89) : error 035: argument type mismatch (argument 1)
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(93) : error 035: argument type mismatch (argument 1)
C:\\Users\\Rendszergazda\\Documents\\teletext3.pwn(97) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
13 Errors.[/pawn]