Jump to content
  • 0

Question

Posted

Practic mi-am creeat un filterscript cu comanda /teles pentru ca nu o pot baga in gamemode si imi da aceasta eroare :

[pawn]C:\Documents and Settings\Vortex\Desktop\Untitled.pwn(10) : error 010: invalid function or declaration

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.[/pawn]

Si filterscriptul :

[pawn]//Mic filterscript pentru teleportari

#include <a_samp>

public OnFilterScriptInit()

{

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

print("Teles FilterScript Creat De MaRyUs$");

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

return 1;

}

if (strcmp(cmdtext, "/teles", true)==0){

SendClientMessage(playerid, 0x33AA33AA, "---Teleports list---");

SendClientMessage(playerid, 0xFFFFFFAA, "/chilliad /drift1 /drift2  /drift3 /drift4 /cazino /viewe /ls /stadium ");

SendClientMessage(playerid, 0xFFFFFFAA, "/crazyjump /crazyjump2 /oldairport /jizzy /plaja /grove /fb /gym /pacanele");

SendClientMessage(playerid, 0xFFFFFFAA, "/tune1 /tune2 /tune3 /dive /bigjump /fight /aa /ac /grada /pizza /sf");

}[/pawn]

L-am postat si pe el pentru ca nu-mi dau seama la ce linie a aparut eroarea.

3 answers to this question

Recommended Posts

Posted

[pawn]// This is a comment

// uncomment the line below if you want to write a filterscript

//#define FILTERSCRIPT

#include <a_samp>

//Mic filterscript pentru teleportari

#include <a_samp>

public OnFilterScriptInit()

{

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

print("Teles FilterScript Creat De MaRyUs$");

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

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp(cmdtext, "/teles", true)==0){

SendClientMessage(playerid, 0x33AA33AA, "---Teleports list---");

SendClientMessage(playerid, 0xFFFFFFAA, "/chilliad /drift1 /drift2  /drift3 /drift4 /cazino /viewe /ls /stadium ");

SendClientMessage(playerid, 0xFFFFFFAA, "/crazyjump /crazyjump2 /oldairport /jizzy /plaja /grove /fb /gym /pacanele");

SendClientMessage(playerid, 0xFFFFFFAA, "/tune1 /tune2 /tune3 /dive /bigjump /fight /aa /ac /grada /pizza /sf");

}

return 1;

}[/pawn]

gXvsYS
Posted

[pawn]// This is a comment

// uncomment the line below if you want to write a filterscript

//#define FILTERSCRIPT

#include <a_samp>

//Mic filterscript pentru teleportari

#include <a_samp>

public OnFilterScriptInit()

{

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

print("Teles FilterScript Creat De MaRyUs$");

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

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp(cmdtext, "/teles", true)==0){

SendClientMessage(playerid, 0x33AA33AA, "---Teleports list---");

SendClientMessage(playerid, 0xFFFFFFAA, "/chilliad /drift1 /drift2  /drift3 /drift4 /cazino /viewe /ls /stadium ");

SendClientMessage(playerid, 0xFFFFFFAA, "/crazyjump /crazyjump2 /oldairport /jizzy /plaja /grove /fb /gym /pacanele");

SendClientMessage(playerid, 0xFFFFFFAA, "/tune1 /tune2 /tune3 /dive /bigjump /fight /aa /ac /grada /pizza /sf");

}

return 1;

}[/pawn]

Nu a mers dar mi-am dat seama de ce nu mergea. Nu am adaugat aia cu [pawn]public OnPlayerCommandText(playerid, cmdtext[])[/pawn]

Mersi oricum ;)

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.