Chat error
#1

hi, there is bug when i chat in servr there is space between chat like this:



onplayertext:
PHP код:
public OnPlayerText(playeridtext[])
{
        if(
IsAFK[playerid] == 1)
        
format(CantTalk128"Type /back");
        
SendClientMessage(playeridred2CantTalk);
           return 
1;

===============
another error here

Pawn:
PHP код:
COMMAND:exit(playeridparams[])
{
            
SendClientMessage(playeridCOLOR_GREEN"{0D4CD6}You left DM.");
            
SpawnPlayer(playerid);
            
SetPlayerHealth(playerid100);
             
ResetPlayerWeapons(playerid);
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            return 
1;
            }
   return 
0;

Error:
Код:
C:\Users\hp\Desktop\server 2\filterscripts\MAP3.pwn(301) : error 029: invalid expression, assumed zero
C:\Users\hp\Desktop\server 2\filterscripts\MAP3.pwn(301) : error 017: undefined symbol "cmd_exit"
C:\Users\hp\Desktop\server 2\filterscripts\MAP3.pwn(301) : error 029: invalid expression, assumed zero
C:\Users\hp\Desktop\server 2\filterscripts\MAP3.pwn(301) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

For starters, Your indentation is bad..
Can you show me line 301 seperately?
Reply
#3

COMMAND:exit(playerid, params[])
Reply
#4

Quote:

COMMAND:exit(playerid, params[])
{
SendClientMessage(playerid, COLOR_GREEN, "{0D4CD6}You left DM.");
SpawnPlayer(playerid);
SetPlayerHealth(playerid, 100);
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
return 1;
}

You added this: return 0;
}

But Its useless..
Reply
#5

i removed it but nothing happen
Reply
#6

any1 knows how to fix one of those errors?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)