SA-MP Forums Archive
Why dosn't this work? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why dosn't this work? (/showthread.php?tid=78850)



Why dosn't this work? - FreddeN - 23.05.2009

Sorry for double post, but people stopped to answer... but now i got more info.
This script makes the server to crash, I'm tryint to make /help that shows some text.

Here is the script:

Код:
	if(strcmp(cmdtext, "/help", true) == 0)
	{
		SendPlayerFormattedText(playerid,"This server is a Gangsta Roleplay server, this isn't a Deathmatch or a Turfwar server.",0);
		SendPlayerFormattedText(playerid,"You saw a hacker, rule breaker, spammer or a deathmatcher? Please report it to a admin.",0);
		SendPlayerFormattedText(playerid,"",0);
		SendPlayerFormattedText(playerid,"Text", 0);
		return 1;
  }
}
And on the bottom of Pawno:

Код:
forward SendPlayerFormattedText(playerid, const str[], define);
public SendPlayerFormattedText(playerid, const str[], define)
{
	new tmpbuf[256];
	format(tmpbuf, sizeof(tmpbuf), str, define);
	SendClientMessage(playerid, 0x33CCFFAA, tmpbuf);
}



Re: Why dosn't this work? - Google63 - 23.05.2009

i suggest to use 128 cells cuz it is max i/o .. see ******'s post for more info..
btw did you test blank gm with this? maybe in other sections of your gm is error


Re: Why dosn't this work? - FreddeN - 23.05.2009

Quote:
Originally Posted by JoeBullet
i suggest to use 128 cells cuz it is max i/o .. see ******'s post for more info..
btw did you test blank gm with this? maybe in other sections of your gm is error
Dah, it was me that failed, I forgot to put a text between " " xD

Thanks anway


Re: Why dosn't this work? - .::: Ecko :::. - 23.05.2009

What's whit this line?
SendPlayerFormattedText(playerid,"",0);

This is the error I suppose!

Ecko