#include <a_samp>
#include <zcmd>
#define BLUE 0x01BFFEFF
#define name
//Teleport System v0.01 beta realse //
//Veamos si funciona //
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Teleport By Venten");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n|******* Hola! *********|");
print("| |");
print("| Teles cargado correctamente.. Creo... |");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/area51", cmdtext, true))
{
SetPlayerPos(playerid, 26.4734,1362.1244,9.1719);
SendClientMessage(playerid, 0xFFFFFFF, "Bienvenido al Area 69 ");
new name[MAX_PLAYERS];
new stringa[256];
GetPlayerName(playerid, name, sizeof(name));
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /area51 -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
if(!strcmp("/playa", cmdtext, true))
{
SetPlayerPos(playerid, -2237.6675,2353.6357,4.9804);
SendClientMessage(playerid, 0xFFFFFFF, " Bienvenido a la Playa ");
new name[MAX_PLAYERS];
new stringa[256];
GetPlayerName(playerid, name, sizeof(name));
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /playa -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
if(!strcmp("/lv1", cmdtext, true))
{
SetPlayerPos(playerid, 778.4303,1871.3485,4.9062);
SendClientMessage(playerid, 0xFFFFFFF, " You are teleported to las venturas ");
new name[MAX_PLAYERS];
new stringa[256];
GetPlayerName(playerid, name, sizeof(name));
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /lv1 -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
if(!strcmp("/aa", cmdtext, true))
SetPlayerPos(playerid,404.32720947266,2452.1518554688,16.990623474121);
SendClientMessage(playerid, 0xFFFFFF, " Bienvenido al Aeropuerto Abandonado ");
new name[MAX_PLAYERS];
new stringa[256];
GetPlayerName(playerid, name, sizeof(name));
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /aa -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
if(!strcmp("/spring", cmdtext, true))
{
SetPlayerPos(playerid, 300.8380,1141.2859,9.1375);
SendClientMessage(playerid, 0xFFFFFFF, " You are teleported to spring ");
new name[MAX_PLAYERS];
new stringa[256];
GetPlayerName(playerid, name, sizeof(name));
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /spring -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
return 0;
}
/* TexDraw Para PawnoScripting, By Venten No Remover creditos MUAJAJAJA.*/
#include <a_samp>
//News.
new Text:Ps;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Teles Cargado Correctamente... Creo.... ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
public OnGameModeInit()
{
//Crea El TextDraw los ~r~ es el color puende ponerle ~g~verde ~w~blanco ~y~amarrillo ~b~azul ~r~rojo
Ps= TextDrawCreate(510.000000, 100.000000, "/comandos /help"); //Texto
TextDrawBackgroundColor(Ps, 250); //Color
TextDrawFont(Ps, 1); //estilo N° 3
TextDrawLetterSize(Ps, 0.2, 1.4000000000000001); //coordenadas del TextDraw
TextDrawColor(Ps, 0xffffffFF); //Color
TextDrawSetOutline(Ps, 1);
TextDrawSetProportional(Ps, 1);
return 1;
}
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(42) : error 001: expected token: "-identifier-", but found "[" C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(43) : warning 219: local variable "stringa" shadows a variable at a preceding level C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 029: invalid expression, assumed zero C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 035: argument type mismatch (argument 2) C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 020: invalid symbol name "" C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : fatal error 107: too many error messages on one line
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/area51", cmdtext, true))
{
new name[45];
new stringa[156];
SetPlayerPos(playerid, 26.4734,1362.1244,9.1719);
SendClientMessage(playerid, 0xFFFFFFF, "Bienvenido al Area 69 ");
GetPlayerName(playerid, name, 45);
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /area51 -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
if(!strcmp("/playa", cmdtext, true))
{
new name[45];
new stringa[156];
SetPlayerPos(playerid, -2237.6675,2353.6357,4.9804);
SendClientMessage(playerid, 0xFFFFFFF, " Bienvenido a la Playa ");
GetPlayerName(playerid, name, 45);
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /playa -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
if(!strcmp("/lv1", cmdtext, true))
{
new name[45];
new stringa[156];
SetPlayerPos(playerid, 778.4303,1871.3485,4.9062);
SendClientMessage(playerid, 0xFFFFFFF, " You are teleported to las venturas ");
GetPlayerName(playerid, name, 45);
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /lv1 -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
if(!strcmp("/aa", cmdtext, true))
{// esto te faltaba.
new name[45];
new stringa[156];
SetPlayerPos(playerid,404.32720947266,2452.1518554688,16.990623474121);
SendClientMessage(playerid, 0xFFFFFF, " Bienvenido al Aeropuerto Abandonado ");
GetPlayerName(playerid, name, 45);
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /aa -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
if(!strcmp("/spring", cmdtext, true))
{
new name[45];
new stringa[156];
SetPlayerPos(playerid, 300.8380,1141.2859,9.1375);
SendClientMessage(playerid, 0xFFFFFFF, " You are teleported to spring ");
GetPlayerName(playerid, name, 45);
format(stringa, sizeof(stringa), "<-------[%s ] se aah transportado a /spring -------->", name);
SendClientMessageToAll(0xFAFFFFFF,stringa);
return 1;
}
return 0;
}
pawn Код:
|
Gracias, si me faltaba eso, sin embaro si se lo agrego siguen los 5 errores, Vi que cambiaste algunos valores, asi que habia eliminaod todo y puse lo que me dijiste, y me aparecen 26 Errores.....
|
Gracias, si me faltaba eso, sin embaro si se lo agrego siguen los 5 errores, Vi que cambiaste algunos valores, asi que habia eliminaod todo y puse lo que me dijiste, y me aparecen 26 Errores.....
|
Cuando te salen 26 errores en la mayorнa de veces es cuando te falta una corchea "{" o "}" en algun callback, fijate bien al momento de copiar alomejor pegaste algo malo.
Siempre guarda un respaldo por si algo sale mal. |
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(40) : error 001: expected token: "-identifier-", but found "[" C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 029: invalid expression, assumed zero C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : warning 215: expression has no effect C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 001: expected token: ";", but found ")" C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 029: invalid expression, assumed zero C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : fatal error 107: too many error messages on one line
Quizas si, yo lo volvi a copiar recien y veo que no salen los 26 errores, ahora salen los 5 errores de antes...
Se los vuelvo a poner Код:
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(40) : error 001: expected token: "-identifier-", but found "[" C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 029: invalid expression, assumed zero C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : warning 215: expression has no effect C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 001: expected token: ";", but found ")" C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : error 029: invalid expression, assumed zero C:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\Teles.pwn(44) : fatal error 107: too many error messages on one line |
#define name
El error es que tienes 'name' en un '#define'.
Borra esta lнnea: pawn Код:
|