SA-MP Forums Archive
help gametext - 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: help gametext (/showthread.php?tid=585528)



help gametext - Viki - 14.08.2015

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



Re: help gametext - Toxik - 14.08.2015

Hm...


Re: help gametext - Dziugsas - 14.08.2015

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


Re: help gametext - Toxik - 14.08.2015

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



Re: help gametext - Viki - 14.08.2015

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



Re: help gametext - Dziugsas - 14.08.2015

just delete params and comma


Re: help gametext - dominik523 - 14.08.2015

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


Re: help gametext - Viki - 14.08.2015

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


Re: help gametext - Toxik - 14.08.2015

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


Re: help gametext - Viki - 14.08.2015

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