error 035: argument type mismatch (argument 2) - 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 2) (
/showthread.php?tid=97620)
error 035: argument type mismatch (argument 2) -
emch0o - 15.09.2009
Please repair eror and warnings
link :
http://pastebin.com/m369f912e
sorry my bad english
Re: error 035: argument type mismatch (argument 2) -
Clavius - 15.09.2009
pawn Код:
if (strcmp(cmdtext, "/flip", true)==0)
{
new VehicleID, Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, x, y, z);
SetVehicleZAngle(VehicleID, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"That's better.. Vehicle Fliped!");
return 1;
}
Because lower-case x, y and z are not defined on a preceding level (upper case X, Y, and Z were)
Re: error 035: argument type mismatch (argument 2) -
emch0o - 15.09.2009
[21:24:04] Script[gamemodes/truck.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[21:24:14] --- Server Shutting Down.
[21:24:14]

Please repair
Re: error 035: argument type mismatch (argument 2) -
Correlli - 15.09.2009
You don't have the function main in the script.