OnPlayertext VIP Tag
#1

Hello Guys Someone Can Help Me With Onplayertext VIP Tag ?

if(pInfo[playerid][pVipLevel] >= 1)
{
format(stringbig,sizeof(stringbig),"{6C0000}[VIP]{FFFFFF}(%d): %s",playerid, text);
SendPlayerMessageToAll(playerid,stringbig);
}

its work normal but when i mad my self regular player i can't see what i said someone can help me ?
Reply
#2

Use
pawn Код:
sendclientmessagetoall(your_color, stringbig);
return 0;
}
Reply
#3

@princekunar before you "help" someone make sure you know it yourself, i would help but im on m phone anyways read the samp wiki anout onplayertext its supposed to go return 1; then return 0;
Reply
#4

Quote:
Originally Posted by Avenger™
Посмотреть сообщение
@princekunar before you "help" someone make sure you know it yourself, i would help but im on m phone anyways read the samp wiki anout onplayertext its supposed to go return 1; then return 0;
You're wrong. Returning 0 stops the original text from being sent - which is what he needs to do.

Also, you can't "return 1; then return 0;". You can only return a single value - 0 or 1.
Reply
#5

Omg, damn i go it messed up with ondialogresponse, sorry
Reply
#6

Still DOnt Work Help
Reply
#7

i still have this problem help look the date of the topic
Reply
#8

pawn Код:
public OnPlayerText(playerid,text[])
{
   if(pInfo[playerid][pVipLevel] >= 1)
   {
       new string[1000];
       format(string,sizeof(string),"{6C0000}[VIP]{FFFFFF}(%d): %s",playerid, text);
       SendClientMessageToAll(GetPlayerColor(playerid),string);
       return 0;
   }
   return 1;
}
Reply
#9

Код:
C:\Documents and Settings\magnifique2012\Mes documents\Tйlйchargements\Project ZMA Y_INI\Server Files\gamemodes\zma900.pwn(1902) : error 017: undefined symbol "message"
C:\Documents and Settings\magnifique2012\Mes documents\Tйlйchargements\Project ZMA Y_INI\Server Files\gamemodes\zma900.pwn(1902) : error 017: undefined symbol "message"
C:\Documents and Settings\magnifique2012\Mes documents\Tйlйchargements\Project ZMA Y_INI\Server Files\gamemodes\zma900.pwn(1902) : error 029: invalid expression, assumed zero
C:\Documents and Settings\magnifique2012\Mes documents\Tйlйchargements\Project ZMA Y_INI\Server Files\gamemodes\zma900.pwn(1902) : fatal error 107: too many error messages on one line

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


4 Errors.
How To Fix This
Reply
#10

Add this somewhere:
pawn Код:
new message[128];
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)