15.04.2009, 21:28
#include <a_samp>
#include <a_players>
#define FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/helpinfo", true) == 0)
{
// Send a message to everyone.
SendClientMessageToAll(0xDEEE20FF, "This is just like a RP drift server.");
SendClientMessageToAll(0xDEEE20FF, "You pick a car and drift.");
SendClientMessageToAll(0xDEEE20FF, "No teleports.");
SendClientMessageToAll(0xDEEE20FF, "Aight?.");
SendClientMessageToAll(0xDEEE20FF, "If you want night, type /night.");
SendClientMessageToAll(0xDEEE20FF, "Respect admins, Teleports might come when i got time.");
return 1;
}
return 0;
}
{
if (strcmp(cmdtext, "/cmds", true) == 0)
{
// Send a message to everyone.
SendClientMessageToAll(0xDEEE20FF, "TIME CMDS: /night /day ");
SendClientMessageToAll(0xDEEE20FF, "DRIFT CMDS: /drift1-19");
SendClientMessageToAll(0xDEEE20FF, "OTHER CMDS: /vfix /vflip /v color (ID)(ID).");
return 1;
}
return 0;
}
I get those errors:
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(23) : error 055: start of function body without function header
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(24) : error 010: invalid function or declaration
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(27) : error 021: symbol already defined: "SendClientMessageToAll"
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(31) : error 010: invalid function or declaration
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(33) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
What do i do wrong.. Wiki samp is down. Help please.
thanks
#include <a_players>
#define FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/helpinfo", true) == 0)
{
// Send a message to everyone.
SendClientMessageToAll(0xDEEE20FF, "This is just like a RP drift server.");
SendClientMessageToAll(0xDEEE20FF, "You pick a car and drift.");
SendClientMessageToAll(0xDEEE20FF, "No teleports.");
SendClientMessageToAll(0xDEEE20FF, "Aight?.");
SendClientMessageToAll(0xDEEE20FF, "If you want night, type /night.");
SendClientMessageToAll(0xDEEE20FF, "Respect admins, Teleports might come when i got time.");
return 1;
}
return 0;
}
{
if (strcmp(cmdtext, "/cmds", true) == 0)
{
// Send a message to everyone.
SendClientMessageToAll(0xDEEE20FF, "TIME CMDS: /night /day ");
SendClientMessageToAll(0xDEEE20FF, "DRIFT CMDS: /drift1-19");
SendClientMessageToAll(0xDEEE20FF, "OTHER CMDS: /vfix /vflip /v color (ID)(ID).");
return 1;
}
return 0;
}
I get those errors:
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(23) : error 055: start of function body without function header
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(24) : error 010: invalid function or declaration
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(27) : error 021: symbol already defined: "SendClientMessageToAll"
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(31) : error 010: invalid function or declaration
C:\Documents and Settings\SandmaN\Skrivbord\Viper\filterscripts\LOL .pwn(33) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
What do i do wrong.. Wiki samp is down. Help please.
thanks