Help - 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: Help (
/showthread.php?tid=269743)
Help -
[MKD]Max - 17.07.2011
Код:
C:\Documents and Settings\LoL\Desktop\lsrcnr\gamemodes\lsrcnr.pwn(8451) : error 035: argument type mismatch (argument 2)
Код:
if (PRESSED(KEY_SECONDARY_ATTACK))
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
if(x >= 1020.1973 && x <= 1042.5262 && y >= -2346.8450 && y <= -2326.6799 && gTeam[playerid] == TEAM_ARMY)
{
if(GetObjectPos(lift,1024.61, -2345.58, 11.60)) // this is error line {
MoveObject(lift,1024.61, -2345.58, 18.60);
}
return 1;
}
}
return 1;
}
Re: Help -
Johnson_boy - 17.07.2011
GetObjectPos needs 3 float variables to store the location, just like GetPlayerPos.
Use GetObjectPos(objectid, x, y, z); and then if(x == ...