help gametext
#1

hey i am trying to make a simple cmd to work but it dosnt
Код:
CMD:Sendmsg(playerid,params[])
{
  new text[60];
  if(sscanf(params,"s[60]",text))
  return SendClientMessage(playerid, 0xFF0000, "Usage:/sendmsg");
  GameTextForAll(playerid, "Visit Our Website www.example.conm", 5000, 2);
  return 1;
}
error
Код:
C:\Users\Waqar\Desktop\zombie\gamemodes\zombie.pwn(8693) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line
Код:
 GameTextForAll(playerid, "Visit Our Website www.example.con", 5000, 2);
Reply
#2

Hm...
Reply
#3

you don't need the playerid ,because it's gametext for all not for one player.
Reply
#4

pawn Код:
CMD:Sendmsg(playerid,params[])
{
  new text[60];
  if(sscanf(params,"s[60]",text))
  return SendClientMessage(playerid, 0xFF0000, "Usage:/sendmsg");
  GameTextForAll("Visit Our Website www.example.conm", 5000, 2);

  return 1;
}
Reply
#5

thanks for ur answers i used
Код:
GameTextForAll(params, "Visit Our Website www.example.con", 5000, 2);
and got the error this
Код:
C:\Users\Waqar\Desktop\zombie\gamemodes\zombie.pwn(8693) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
line
Код:
GameTextForAll(params, "Visit Our Website www.example.con", 5000, 2);
Reply
#6

just delete params and comma
Reply
#7

Quote:
Originally Posted by Viki
Посмотреть сообщение
thanks for ur answers i used
Код:
GameTextForAll(params, "Visit Our Website www.example.con", 5000, 2);
and got the error this
Код:
C:\Users\Waqar\Desktop\zombie\gamemodes\zombie.pwn(8693) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
line
Код:
GameTextForAll(params, "Visit Our Website www.example.con", 5000, 2);
Check out the wiki next time for all parametars:
https://sampwiki.blast.hk/wiki/GameTextForAll
Reply
#8

Hmm,it worked anyway i can reduce the size and about the colors?also it dosnt work if put /sendmsg i have to do /sendmsg sdfa
Reply
#9

Quote:
Originally Posted by Viki
Посмотреть сообщение
Hmm,it worked anyway i can reduce the size and about the colors?also it dosnt work if put /sendmsg i have to do /sendmsg sdfa
you cant change size but you can change colours
Reply
#10

How can you give me the whole script?with color and cmd?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)