Please help me fast!!! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Please help me fast!!! (
/showthread.php?tid=252160)
Please help me fast!!! -
kelvin22 - 30.04.2011
Hey guys!
I am a new scripter i need a help i wona make Adminname: [Admin]: text (wher a admin wirte he wirte in it strig adminname: [Admin]: text) i make it with a string but i wona make it in this form: adminname(lightblue): [Admin](red): text(white)
Plzz guys help me fast tomorow is my server open day!!!
Re: Please help me fast!!! -
StreetGT - 30.04.2011
http://forum.sa-mp.com/search.php
Re: Please help me fast!!! -
VirSpectorX - 30.04.2011
This one may work...
pawn Код:
public OnPlayerText(playerid, text[]){
new txt[256];
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PName);
format(txt, 256, "{0D00FF}%s {FF0000}[Admin]: {FFFFFF}%s", PName, text);
SendClientMessageToAll(txt, GetPlayerColor(playerid)); //The GetPlayerColor stuff just for adding. It doesn't really work...
return 0;
}
Note: Don't forget to set who is an admin or not
Re: Please help me fast!!! -
kelvin22 - 30.04.2011
guys thanks very much @VirSpectorX ok i will try your script thnx
Re: Please help me fast!!! -
kelvin22 - 30.04.2011
hmmmm not work

( plzz guys help me i use V-admin:
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\pawno\include\dutils.inc(459) : warning 219: local variable "txt" shadows a variable at a preceding level
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\pawno\include\dutils.inc(475) : warning 219: local variable "txt" shadows a variable at a preceding level
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(991) : warning 217: loose indentation
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(997) : warning 217: loose indentation
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1232) : warning 217: loose indentation
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1232) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1232) : error 017: undefined symbol "text"
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1233) : warning 219: local variable "txt" shadows a variable at a preceding level
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1235) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1236) : error 017: undefined symbol "text"
C:\Documents and Settings\Kelvin\Desktop\Golden Stunter\filterscripts\Admin.pwn(1237) : error 035: argument type mismatch (argument 1)