Error when trying to compile.
#1

Hello there community,

I have a problem with my script.

I get this error when trying to compile.

Код:
C:\Users\Stefhan\Desktop\samp03z_svr_R1_win32\gamemodes\grove.pwn(63) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Please help me out. This is my code.

Код:
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
CreateObject(1497, 1582.02441, -1963.06726, -750.00000,   45.00000, 0.00000, 0.00000);
CreateObject(19356, 1582.81567, -1964.05762, -748.93341,   0.00000, 135.00000, 90.00000);
CreateObject(19356, 1584.33813, -1963.79993, -749.43671,   0.00000, 0.00000, 0.00000);
CreateObject(19356, 1581.38623, -1963.79993, -749.43671,   0.00000, 0.00000, 0.00000);
CreateObject(19356, 1582.79138, -1963.75403, -751.28003,   0.00000, 90.00000, 0.00000);
CreateObject(19356, 1583.02942, -1962.26501, -749.43671,   0.00000, 0.00000, 90.00000);
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
CreateObject(1497, 1582.02441, -1963.06726, -750.00000,   45.00000, 0.00000, 0.00000);
CreateObject(19356, 1582.81567, -1964.05762, -748.93341,   0.00000, 135.00000, 90.00000);
CreateObject(19356, 1584.33813, -1963.79993, -749.43671,   0.00000, 0.00000, 0.00000);
CreateObject(19356, 1581.38623, -1963.79993, -749.43671,   0.00000, 0.00000, 0.00000);
CreateObject(19356, 1582.79138, -1963.75403, -751.28003,   0.00000, 90.00000, 0.00000);
CreateObject(19356, 1583.02942, -1962.26501, -749.43671,   0.00000, 0.00000, 90.00000);
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerConnect(playerid)
{
CreatePlayerObject(playerid, 14407, 1582.82031, -1968.01563, -754.40002,   0.00000, 0.00000, 180.00000);
SetPlayerObjectMaterial(playerid, 0, 19356, "all_walls", "wall6", 0);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Reply


Messages In This Thread
Error when trying to compile. - by Stefhan - 25.03.2015, 13:53
Re: Error when trying to compile. - by De4dpOol - 25.03.2015, 13:58
Re: Error when trying to compile. - by Stefhan - 25.03.2015, 13:59
Re: Error when trying to compile. - by maximthepain - 25.03.2015, 14:06
Re: Error when trying to compile. - by Cypress - 25.03.2015, 14:06
Re: Error when trying to compile. - by fuckingcruse - 25.03.2015, 14:07
Re: Error when trying to compile. - by maximthepain - 25.03.2015, 14:08
Re: Error when trying to compile. - by Stefhan - 25.03.2015, 14:09
Re: Error when trying to compile. - by fuckingcruse - 25.03.2015, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)