Why dosn't this work?
#1

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);
}
Reply
#2

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
Reply
#3

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
Reply
#4

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

This is the error I suppose!

Ecko
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)