Svripting Help If You Help Me +Rep
#1

Guys i need help in my gamemode in that i have to change the thing that a player types anything in chat it Have to show. Player id also with player Name.like this

[LB]BlAck_DeViL To» [LB]BlAck_DeViL(id)

Anyone Please Help me
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new msg[128]; //We do not need to have it larger than 128, because a message can't be larger than that.
    format(msg, sizeof(msg), "[%d] %s", playerid, text); //
    SendPlayerMessageToAll(playerid, msg);
    return 0;
}
Reply
#3

Thnz +Rep
Reply
#4

when i added it in the gamemode it is showing
3error and 4warning

Quote:

D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(1207 : warning 217: loose indentation
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(1207 : error 029: invalid expression, assumed zero
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(1207 : error 017: undefined symbol "text"
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(12080) : warning 219: local variable "msg" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(12081) : error 017: undefined symbol "text"
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(12086) : warning 225: unreachable code
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(12086) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)