SA-MP Forums Archive
warning 202: number of arguments does not match definition - 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: warning 202: number of arguments does not match definition (/showthread.php?tid=645513)



warning 202: number of arguments does not match definition - MariusAdv - 28.11.2017

Hello guys, I have a probelm with this.

Script.
Код:
forward PayDay(playerid);
public PayDay(playerid)
{
   new m;
   if(gettime(m) == 00)
   {
       for(new i; i < MAX_PLAYERS; i++)
       {
           if(IsPlayerConnected(i))
           {
               GameTextForPlayer(i, "~g~Payday", 5000);             LINE 119
               SendClientMessage(i, COLOR_WHITE, "Payday has arrived");
               GivePlayerMoney(i, GetPlayerMoney(i) * 20 / 100); // Ii va da 20% din banii pe care ii are.
           }
       }
   }
   return 1;
}
Error:
Код:
(119) : warning 202: number of arguments does not match definition



Re: warning 202: number of arguments does not match definition - Meller - 28.11.2017

https://sampwiki.blast.hk/wiki/GameTextForPlayer
GameTextForPlayer(playerid, const string[], time, style)


Re: warning 202: number of arguments does not match definition - MariusAdv - 28.11.2017

Quote:
Originally Posted by Meller
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/GameTextForPlayer
GameTextForPlayer(playerid, const string[], time, style)
Thanks!


Re: warning 202: number of arguments does not match definition - RageCraftLV - 28.11.2017

Is it that hard to look up the wiki? Use the search function.