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.
public ChangeTextWebsite(arg0[])
C:\ser\filterscripts\logo.pwn(45) : error 025: function heading differs from prototype
#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;
}
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.
#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;
}
|
pawn Код:
|