SA-MP Forums Archive
Svripting Help If You Help Me +Rep - 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: Svripting Help If You Help Me +Rep (/showthread.php?tid=374555)



Svripting Help If You Help Me +Rep - [LB]BlAcK_DeViL - 03.09.2012

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


Re: Svripting Help If You Help Me +Rep - RanSEE - 03.09.2012

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;
}



Re: Svripting Help If You Help Me +Rep - [LB]BlAcK_DeViL - 03.09.2012

Thnz +Rep


Re: Svripting Help If You Help Me +Rep - [LB]BlAcK_DeViL - 03.09.2012

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.