Jump to content
  • 0

pomoc Error 010: Invalid Function Or Declaration


dragoniso

Dotaz

11 odpovědí na tuto otázku

Recommended Posts

  • 0

#include <a_samp>

forward Reklama_by_Kassar();

//---Code---//

#define ORANGE 0xFF8C00AA

 

forward Reklama();

 

public OnFilterScriptInit()

{

print("\n--------------------------------------");

print(" Reklama By Kassar ");

print("--------------------------------------\n");

SetTimer("Reklama_by_Kassar",30000,1);

return 1;

}

public OnPlayerConnect(playerid)

{

SendClientMessageToAll(ORANGE, "Server používa Reklamu by Kassar ");

return 1;

}

 

 

 

 

#define COLOR_RED 0xFF0000AA

#define COLOR_GREEN 0x40FF40FF

#define COLOR_DARKGREEN 0x33AA33AA

#define COLOR_PINK 0xFF40FFFF

#define COLOR_YELLOW 0xFFFF00AA

#define COLOR_VIOLET 0xEE82EEFF

#define COLOR_DARKVIOLET 0x9400D3FF

#define COLOR_DARKRED 0x8B0000FF

#define COLOR_LIGHTBLUE 0x00FFFFAA

#define COLOR_ORANGE 0xFFA500FF

#define COLOR_DARKORANGE 0xFF8C00FF

#define COLOR_BLUE 0x0000BBAA

#define COLOR_GREY 0xAFAFAFAA

#define COLOR_WHITE 0xFFFFFFAA

#define COLOR_BLACK 0x00000000

#define COLOR_MODRA 0x0000BBAA

#define COLOR_MODRA2 0x4682B4AA

#define COLOR_MODRA3 0x4169FFAA

#define COLOR_SVMODRA 0x33CCFFAA

#define COLOR_ZELENA 0x008000AA

#define COLOR_CYAN 0x00FFFFAA

#define COLOR_TMAVACYAN 0x008B8BAA

#define COLOR_BILA 0xFFFFFFAA

#define COLOR_ZLUTA 0xFFFF00AA

#define COLOR_HNEDA 0xA52A2AAA

#define COLOR_HNEDA2 0xBC8F8FAA

#define COLOR_COKOLADA 0xD2691EAA

#define COLOR_CERVENA 0xFF0000AA

#define COLOR_SEDA 0x808080AA

#define COLOR_FIALOVA 0x800080AA

#define COLOR_RUZOVA 0xFFC0CBAA

#define COLOR_CHARTR 0x7FFF00AA

#define COLOR_ORANZCERV 0xFF4500AA

#define COLOR_CIERNA 0x0B0606AA

#define COLOR_SYSTEM 0xEFEFF7AA

#define COLOR_GOLD 0xffd700AA

 

 

public Reklama() {

switch(random(31)) {

 

case 0: {

SendClientMessageToAll(COLOR_GOLD, "Navstivte nas web: www.sa-mp.tode.cz");

}

 

case 1: {

SendClientMessageToAll(COLOR_SYSTEM, "Server vyuzivá prikaz (/carmenu)");

}

 

case 2: {

SendClientMessageToAll(COLOR_ORANZCERV, "Chces mit fajnove auto (/tune)");

}

 

case 3: {

SendClientMessageToAll(COLOR_CHARTR, "Kup si VIP za 30KC a získej vyhody na 2mesice vice na webu (VIP se děla)");

}

 

case 4: {

SendClientMessageToAll(COLOR_RUZOVA, "VIP je zatim FREE pozadej admina");

}

 

case 5: {

SendClientMessageToAll(COLOR_GREY, "Majitelem je Kassar");

}

 

case 6: {

SendClientMessageToAll(COLOR_BLUE, "Libí se vam server poslete ho kamaradum");

}

}

}

return 1;

}

 

 

 

 

// by Kassar

 

 

 

 

 

Porad co delam spatne.

Link to comment
Share on other sites

  • 0

stáhni si nový pawno , ve složce includes musíš mít ten soubor a_samp aby si vůbec mohl pawnit

 

//edit ted jsi ten příspěvek asi editnul, ale předtím jsi měl chybu která ti vypisovala že tam nemáš include,

 

 

jinak řekl bych že u publicu reklama máš jednu uzavírací závorku navíc

Link to comment
Share on other sites

  • 0
public Reklama()
{
switch(random(7))
{
case 0:
{
SendClientMessageToAll(COLOR_GOLD, "Navstivte nas web: www.sa-mp.tode.cz");
}
case 1:
{
SendClientMessageToAll(COLOR_SYSTEM, "Server vyuzivá prikaz (/carmenu)");
}
case 2:
{
SendClientMessageToAll(COLOR_ORANZCERV, "Chces mit fajnove auto (/tune)");
}
case 3:
{
SendClientMessageToAll(COLOR_CHARTR, "Kup si VIP za 30KC a získej vyhody na 2mesice vice na webu (VIP se děla)");
}
case 4:
{
SendClientMessageToAll(COLOR_RUZOVA, "VIP je zatim FREE pozadej admina");
}
case 5:
{
SendClientMessageToAll(COLOR_GREY, "Majitelem je Kassar");
}
case 6:
{
SendClientMessageToAll(COLOR_BLUE, "Libí se vam server poslete ho kamaradum");
}
}
return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...