[Problema]Ayuda plis :D
#1

Hola.. Bueno estoy haciendo un "TEXTDRAW" xd y me sale unos warning ya los arregle pero faltarian dos.. estos.. xd
Код:
C:\ser\filterscripts\logo.pwn(45) : error 025: function heading differs from prototype
C:\ser\filterscripts\logo.pwn(48) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Plis ayuda :/
Reply
#2

Pone las lineas que dice que tienen errores
Reply
#3

Quote:
Originally Posted by Dx2
Посмотреть сообщение
Pone las lineas que dice que tienen errores
45 public ChangeTextWebsite(arg0)

48 TextDrawSetString(glob0, arg0);
Reply
#4

proba cambiando la linea 45 por esta
pawn Код:
public ChangeTextWebsite(arg0[])
Reply
#5

pawn Код:
C:\ser\filterscripts\logo.pwn(45) : error 025: function heading differs from prototype
Este error es cuando declaras un forward y el public de ese forward tiene los parбmetros diferentes.
Reply
#6

Bueno mejor les dejo el code -.-D: pa ver si pueden hacer algo..
Код:
#include <a_samp>
#include <core>
#include <float>

new Text:glob0;

new glob4;


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Flashing Website Textdraw by Chachizo is LOAD");
	print("--------------------------------------\n");
	glob0 = TextDrawCreate(481.0, 97.0, "* Pura Joda*+");
	TextDrawBackgroundColor(glob0, 0x000000FF);
	TextDrawFont(glob0, 3);
	TextDrawLetterSize(glob0, 0.4399, 2.0);
	TextDrawColor(glob0, 0xFFFFFFFF);
	TextDrawSetOutline(glob0, 1);
	TextDrawSetProportional(glob0, true);
	SetTimer("ChangeWebsite", 200, true);
	return 1;
}

public OnFilterScriptExit()
{
	TextDrawDestroy(glob0);
	return 1;
}

public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, 0xF60000AA, "Bievenidos A Pura Joda Disfrutenlo!!!.");
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	TextDrawHideForPlayer(playerid, glob0);
	return 1;
}

public ChangeTextWebsite(arg0)
{
	TextDrawHideForAll(glob0);
	TextDrawSetString(glob0, arg0);
	TextDrawShowForAll(glob0);
	return 1;
}

public ChangeWebsite()
{
	if(glob4 > 11)
	{
		glob4 = 0;
	}
	switch(glob4) {
		case 0:
			ChangeTextWebsite("~p~ Pura Joda");
		case 1:
			ChangeTextWebsite("~p~ Pura Joda");
		case 2:
			ChangeTextWebsite("~y~ Pura Joda");
		case 3:
			ChangeTextWebsite("~y~ Pura Joda");
		case 4:
			ChangeTextWebsite("~h~ Pura Joda");
		case 5:
			ChangeTextWebsite("~h~ Pura Joda");
		case 6:
			ChangeTextWebsite("~b~          2012");
		case 7:
			ChangeTextWebsite("~b~          2012");
		case 8:
			ChangeTextWebsite("~r~          2012");
		case 9:
			ChangeTextWebsite("~r~          2012");
		case 10:
			ChangeTextWebsite("~p~          2012");
	}
	glob4++;
	return 0;
}
Y los warnings
Код:
C:\ser\filterscripts\logo.pwn(44) : warning 235: public function lacks forward declaration (symbol "ChangeTextWebsite")
C:\ser\filterscripts\logo.pwn(47) : error 035: argument type mismatch (argument 2)
C:\ser\filterscripts\logo.pwn(52) : warning 235: public function lacks forward declaration (symbol "ChangeWebsite")
C:\ser\filterscripts\logo.pwn(60) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(62) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(64) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(66) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(68) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(70) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(72) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(74) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(76) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(78) : error 035: argument type mismatch (argument 1)
C:\ser\filterscripts\logo.pwn(80) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
Reply
#7

pawn Код:
#include <a_samp>
#include <core>
#include <float>

new Text:glob0;

new glob4;


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Flashing Website Textdraw by Chachizo is LOAD");
    print("--------------------------------------\n");
    glob0 = TextDrawCreate(481.0, 97.0, "* Pura Joda*+");
    TextDrawBackgroundColor(glob0, 0x000000FF);
    TextDrawFont(glob0, 3);
    TextDrawLetterSize(glob0, 0.4399, 2.0);
    TextDrawColor(glob0, 0xFFFFFFFF);
    TextDrawSetOutline(glob0, 1);
    TextDrawSetProportional(glob0, true);
    SetTimer("ChangeWebsite", 200, true);
    return 1;
}

public OnFilterScriptExit()
{
    TextDrawDestroy(glob0);
    return 1;
}

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, 0xF60000AA, "Bievenidos A Pura Joda Disfrutenlo!!!.");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    TextDrawHideForPlayer(playerid, glob0);
    return 1;
}
forward ChangeTextWebsite(arg0[]);
public ChangeTextWebsite(arg0[])//estos dos deben estar asi, si hay otro forward ChangeTextWebsite quitalo
{
    TextDrawHideForAll(glob0);
    TextDrawSetString(glob0, arg0);
    TextDrawShowForAll(glob0);
    return 1;
}
forward ChangeWebsite();//y te falto el forward
public ChangeWebsite()
{
    if(glob4 > 11)
    {
        glob4 = 0;
    }
    switch(glob4) {
        case 0: ChangeTextWebsite("~p~ Pura Joda");
        case 1: ChangeTextWebsite("~p~ Pura Joda");
        case 2: ChangeTextWebsite("~y~ Pura Joda");
        case 3: ChangeTextWebsite("~y~ Pura Joda");
        case 4: ChangeTextWebsite("~h~ Pura Joda");
        case 5: ChangeTextWebsite("~h~ Pura Joda");
        case 6: ChangeTextWebsite("~b~          2012");
        case 7: ChangeTextWebsite("~b~          2012");
        case 8: ChangeTextWebsite("~r~          2012");
        case 9: ChangeTextWebsite("~r~          2012");
        case 10: ChangeTextWebsite("~p~          2012");
    }
    glob4++;
    return 0;
}
Reply
#8

Quote:
Originally Posted by Bu11Sh0t
Посмотреть сообщение
pawn Код:
#include <a_samp>
#include <core>
#include <float>

new Text:glob0;

new glob4;


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Flashing Website Textdraw by Chachizo is LOAD");
    print("--------------------------------------\n");
    glob0 = TextDrawCreate(481.0, 97.0, "* Pura Joda*+");
    TextDrawBackgroundColor(glob0, 0x000000FF);
    TextDrawFont(glob0, 3);
    TextDrawLetterSize(glob0, 0.4399, 2.0);
    TextDrawColor(glob0, 0xFFFFFFFF);
    TextDrawSetOutline(glob0, 1);
    TextDrawSetProportional(glob0, true);
    SetTimer("ChangeWebsite", 200, true);
    return 1;
}

public OnFilterScriptExit()
{
    TextDrawDestroy(glob0);
    return 1;
}

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, 0xF60000AA, "Bievenidos A Pura Joda Disfrutenlo!!!.");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    TextDrawHideForPlayer(playerid, glob0);
    return 1;
}
forward ChangeTextWebsite(arg0[]);
public ChangeTextWebsite(arg0[])//estos dos deben estar asi, si hay otro forward ChangeTextWebsite quitalo
{
    TextDrawHideForAll(glob0);
    TextDrawSetString(glob0, arg0);
    TextDrawShowForAll(glob0);
    return 1;
}
forward ChangeWebsite();//y te falto el forward
public ChangeWebsite()
{
    if(glob4 > 11)
    {
        glob4 = 0;
    }
    switch(glob4) {
        case 0: ChangeTextWebsite("~p~ Pura Joda");
        case 1: ChangeTextWebsite("~p~ Pura Joda");
        case 2: ChangeTextWebsite("~y~ Pura Joda");
        case 3: ChangeTextWebsite("~y~ Pura Joda");
        case 4: ChangeTextWebsite("~h~ Pura Joda");
        case 5: ChangeTextWebsite("~h~ Pura Joda");
        case 6: ChangeTextWebsite("~b~          2012");
        case 7: ChangeTextWebsite("~b~          2012");
        case 8: ChangeTextWebsite("~r~          2012");
        case 9: ChangeTextWebsite("~r~          2012");
        case 10: ChangeTextWebsite("~p~          2012");
    }
    glob4++;
    return 0;
}
Gracias man!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)