Ayuda! algunos Errores!
#1

Hola a todos, soy nuevo en Pawno y les comento lo que me pasa. Hice un FS de Teletransportaciones arregle mucho ya y sigue con errores quizas ustedes me pueden ayudar . (Aclaro que en realidad lo saque de un lugar solamente estaba en ingles y yo lo que hice fue cambiarle el SendClientMenssage a espaсol ) lo hice asi:

pawn Код:
#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;
}
Y me tira estos errores:

Код:
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
Desde ya Muchas gracias n.n
Reply


Messages In This Thread
Ayuda! algunos Errores! - by Venten - 06.11.2014, 21:45
Respuesta: Ayuda! algunos Errores! - by ErickPuga234 - 06.11.2014, 22:24
Respuesta: Ayuda! algunos Errores! - by Venten - 06.11.2014, 22:52
Respuesta: Ayuda! algunos Errores! - by !R1Ch@rD! - 06.11.2014, 23:06
Respuesta: Ayuda! algunos Errores! - by jotajeda - 06.11.2014, 23:20
Respuesta: Ayuda! algunos Errores! - by Venten - 07.11.2014, 14:43
Respuesta: Ayuda! algunos Errores! - by jotajeda - 07.11.2014, 15:02
Respuesta: Ayuda! algunos Errores! - by aoEXE - 07.11.2014, 22:24
Respuesta: Ayuda! algunos Errores! - by Venten - 08.11.2014, 14:25

Forum Jump:


Users browsing this thread: 1 Guest(s)