Error Server Massage
#1

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.
Reply
#2

Hello!

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

Take this code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)