Jump to content
  • 0

Warn


Samy Romafia

Question

(3978) : warning 202: number of arguments does not match definition
	        new
	            string[128]
			;
			format(string, sizeof(string),">> \"%d\" seconds till \"%s\" named race starts! Type \"/joinrace\" to join the race.",">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara.", CountAmount, RaceName);//,">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara."
			SendClientMessageToAllLang(GREEN, string);//3978
SendClientMessageToAllLang(color, langeng[], langpl[], define1[]="", str=0,str2=0, define2[]="", define3[]="", define4[]="",str3=0)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
 	{
 	    if(IsPlayerConnected(i))
 	    {
			SendClientMessageLang(i, color,langeng, langpl, define1, str, str2, define2, define3, define4,str3);
		}
	}
}

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Uita-te putini la parametri, cati parametri are functia, si cati chemi tu:

SendClientMessageToAllLang(color, langeng[], langpl[], define1[]="", str=0,str2=0, define2[]="", define3[]="", define4[]="",str3=0)
1. color 2. langeng[] 3. langpl[] 4. * define1[] 5. * str 6. * str2 7. * define2[] 8. * define3[] 9. * define4[] 10. * str3 * - optional
new string[128];
format(string, sizeof(string),">> \"%d\" seconds till \"%s\" named race starts! Type \"/joinrace\" to join the race.",">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara.", CountAmount, RaceName);//,">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara."
SendClientMessageToAllLang(GREEN, string);//3978 
Tu chemi doar primii 2 parametri: color si langeg ... trebuie chemat si langpl, eventual si optionalele ( nu trebuie neaparat ) revin cu un edit sa-ti arat cum se face
new string[2][128];
format(string[0], 128,">> \"%d\" seconds till \"%s\" named race starts! Type \"/joinrace\" to join the race.");
format(string[1], 128,">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara.");
SendClientMessageToAllLang(GREEN, string[0], string[1], "", CountAmount, RaceName);

Link to comment
Share on other sites

Am facut asa:

		new string[2][128];
		format(string[0], 128,">> \"%d\" seconds till \"%s\" named race starts! Type \"/joinrace\" to join the race.", CountAmount, RaceName);
		format(string[1], 128,">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara.", CountAmount, RaceName);
        SendClientMessageToAllLang(GREEN, string[0], string[1]);

Acuma incerc

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.