24.06.2009, 14:01
Ok,i got this error:
And the code is:
Where is the problem?
Full code is:
pawn Код:
C:\Documents and Settings\Allu\Desktop\Failid\samp02Xserver.win32\gamemodes\lvdm.pwn(599) : error 035: argument type mismatch (argument 1)
Quote:
if(strcmp(cmdtext,"/varav", true) == 0) |
Full code is:
pawn Код:
new cmdtext;
new AnthonyVarav;
new playerid;
new COLOR_LIGHTRED;
if(strcmp(cmdtext,"/varav", true) == 0)
{
{
new gateuse;
if(gateuse == 0)
{
MoveObject(AnthonyVarav, 322.057648, -1187.713867, 76.314163, 2.00);
gateuse = 1;
return 1;
}
else if(gateuse == 1)
{
MoveObject(AnthonyVarav, -322.057648, -1187.713867, 70.788826, 2.00);
gateuse = 0;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Sa ei saa seda avada.");
}
}
}