SA-MP Forums Archive
Error 035: argument type mismatch (argument 1) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error 035: argument type mismatch (argument 1) (/showthread.php?tid=240192)



Error 035: argument type mismatch (argument 1) - John_Cooper - 15.03.2011

Error
Код:
(2957) : error 035: argument type mismatch (argument 1)
Whats on that line:
Код:
format(RandomFireLocation, 256, "%s", RandomFireLocationNames[RAND]);



Re: Error 035: argument type mismatch (argument 1) - John_Cooper - 15.03.2011

Na its not a message like that let me post it below

Код:
public StartRandomFire()
{

	new RAND = random(sizeof(RandomFireSpawns));
	new RandomFireLocation;
	*
	* = RandomFireSpawns[RAND][0];
	* = RandomFireSpawns[RAND][1];
	* = RandomFireSpawns[RAND][2];
	format(RandomFireLocation, 256, "%s", RandomFireLocationNames[RAND]);
	RandomFireTimer = SetTimer("RandomFire",5000,1);
	FireCount = *
	RandomFireActive = *
	*

	*
	}}

	format(erpstring, sizeof(erpstring), "-------------------------------------------------------------------------------------------------------------");
	SendMessageToEMSWhite(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToEMS(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToEMSGrey(erpstring);
	format(erpstring, sizeof(erpstring), "LOCATION: %s", RandomFireLocation);
	SendMessageToEMSGrey(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToEMSGrey(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToEMSGrey(erpstring);
	format(erpstring, sizeof(erpstring), "-------------------------------------------------------------------------------------------------------------");
	SendMessageToEMSWhite(erpstring);

	format(erpstring, sizeof(erpstring), "-------------------------------------------------------------------------------------------------------------");
	SendMessageToLawWhite(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToLaw(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToLawGrey(erpstring);
	format(erpstring, sizeof(erpstring), "LOCATION: %s", RandomFireLocation);
	SendMessageToLawGrey(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToLawGrey(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToLawGrey(erpstring);
	format(erpstring, sizeof(erpstring), "-------------------------------------------------------------------------------------------------------------");
	SendMessageToLawWhite(erpstring);

}



Re: Error 035: argument type mismatch (argument 1) - Zh3r0 - 15.03.2011

Quote:
Originally Posted by John_Cooper
Посмотреть сообщение
Na its not a message like that let me post it below

Код:
public StartRandomFire()
{

	new RAND = random(sizeof(RandomFireSpawns));
	new RandomFireLocation;
	*
	* = RandomFireSpawns[RAND][0];
	* = RandomFireSpawns[RAND][1];
	* = RandomFireSpawns[RAND][2];
	format(RandomFireLocation, 256, "%s", RandomFireLocationNames[RAND]);
	RandomFireTimer = SetTimer("RandomFire",5000,1);
	FireCount = *
	RandomFireActive = *
	*

	*
	}}

	format(erpstring, sizeof(erpstring), "-------------------------------------------------------------------------------------------------------------");
	SendMessageToEMSWhite(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToEMS(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToEMSGrey(erpstring);
	format(erpstring, sizeof(erpstring), "LOCATION: %s", RandomFireLocation);
	SendMessageToEMSGrey(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToEMSGrey(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToEMSGrey(erpstring);
	format(erpstring, sizeof(erpstring), "-------------------------------------------------------------------------------------------------------------");
	SendMessageToEMSWhite(erpstring);

	format(erpstring, sizeof(erpstring), "-------------------------------------------------------------------------------------------------------------");
	SendMessageToLawWhite(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToLaw(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToLawGrey(erpstring);
	format(erpstring, sizeof(erpstring), "LOCATION: %s", RandomFireLocation);
	SendMessageToLawGrey(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToLawGrey(erpstring);
	format(erpstring, sizeof(erpstring), "*");
	SendMessageToLawGrey(erpstring);
	format(erpstring, sizeof(erpstring), "-------------------------------------------------------------------------------------------------------------");
	SendMessageToLawWhite(erpstring);

}
What the hell is this

pawn Код:
*
    * = RandomFireSpawns[RAND][0];
    * = RandomFireSpawns[RAND][1];
    * = RandomFireSpawns[RAND][2];
?


Re: Error 035: argument type mismatch (argument 1) - John_Cooper - 15.03.2011

i just put stars cause i didnt want nubs copying my code i just need help with the line i posted


Re: Error 035: argument type mismatch (argument 1) - Zh3r0 - 15.03.2011

Quote:
Originally Posted by John_Cooper
Посмотреть сообщение
i just put stars cause i didnt want nubs copying my code i just need help with the line i posted
Post the real code! Who's gonna steal it, omg it's just a variable name...


Re: Error 035: argument type mismatch (argument 1) - Slice - 15.03.2011

Why would someone steal code that doesn't even work?


Re: Error 035: argument type mismatch (argument 1) - John_Cooper - 15.03.2011

That doesnt matter i just need help with the line thats in the first topic