if (strcmp("/dgate", cmdtext, true, 10) == 0)
{
if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator.");
if(dGateOpened == 0)
{
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0);
SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened.");
dGateOpened = 1;
}
else
{
F_MoveObject(dgate,-2864.921875, 468.37530517578, 4.5343232154846, 2.0);
SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed.");
dGateOpened = 0;
}
return 1;
}
C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0);
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0);
Check these parameters.
pawn Код:
|
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0);
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0);
I see this https://sampwiki.blast.hk/wiki/MoveObject but that doesn't help me.
for example i ave this here pawn Код:
Код:
C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings. |
if (strcmp("/dgate", cmdtext, true, 10) == 0) { if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator."); if(dGateOpened == 0) { MoveDynamicObject(dgate, -2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0); SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened."); dGateOpened = 1; } else { MoveDynamicObject(dgate, -2864.921875, 468.37530517578, 4.5343232154846, 2.0); SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed."); dGateOpened = 0; } return 1; }
if (strcmp("/dgate", cmdtext, true, 10) == 0) { if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator."); if(dGateOpened == 0) { F_MoveObject(dgate, -2864.9616699219, 460.51702880859, 4.5343232154846, 2.0); SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened."); dGateOpened = 1; } else { F_MoveObject(dgate, -2864.921875, 468.37530517578, 4.5343232154846, 2.0); SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed."); dGateOpened = 0; } return 1; }
if (strcmp("/dgate", cmdtext, true, 10) == 0)
{
if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator.");
if(dGateOpened == 0)
{
F_MoveObject(dgate, -2864.9616699219, 460.51702880859, 4.5343232154846, 2.0);
SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened.");
dGateOpened = 1;
}
else
{
F_MoveObject(dgate, -2864.921875, 468.37530517578, 4.5343232154846, 2.0);
SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed.");
dGateOpened = 0;
}
return 1;
}