SA-MP Forums Archive
Error Server Massage - 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)
+--- Thread: Error Server Massage (/showthread.php?tid=648390)



Error Server Massage - Tihoy232 - 21.01.2018

I want to add a message for the server but why the error? please help me

PHP CODE :

Код:
public ServerMessage()
{
        TextDrawSetString(RandomBox1, Textdraws[random(sizeof(Textdraws))]);
		return 1;
)
public SendAdminMessage(color, string[])
{
Errors getting
PHP Code:
Код:
C:\Documents and Settings\Administrator\My Documents\Downloads\GGRP\gamemodes\Roleplay.pwn(3967) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Administrator\My Documents\Downloads\GGRP\gamemodes\Roleplay.pwn(3968) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\My Documents\Downloads\GGRP\gamemodes\Roleplay.pwn(3968 -- 3969) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\My Documents\Downloads\GGRP\gamemodes\Roleplay.pwn(3969) : error 001: expected token: ";", but found "public"
C:\Documents and Settings\Administrator\My Documents\Downloads\GGRP\gamemodes\Roleplay.pwn(3969) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\My Documents\Downloads\GGRP\gamemodes\Roleplay.pwn(3969) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.



Re: Error Server Massage - Mencent - 21.01.2018

Hello!

You had use ) instead of }.
PHP код:
public ServerMessage()
{
        
TextDrawSetString(RandomBox1Textdraws[random(sizeof(Textdraws))]);
        return 
1;

Take this code.