warning 202: number of arguments does not match definition
#1

Please Help Me With The Error And Warning

Error Code
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(137) : error 010: invalid function or declaration

Warning Code
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(116) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(116) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(117) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(117) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(123) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(123) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(124) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(124) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(130) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(130) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(131) : warning 202: number of arguments does not match definition
C:\Documents and Settings\user\Desktop\samp03bsvr_R2_win32\pawno\sf pd.pwn(131) : warning 202: number of arguments does not match definition


Heres The Script
OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sfpd2", cmdtext, true) == 0)
{
MoveObject(sf, -1624.64, 688.20, 9.00, 0.00, 0.00, 180.00);
MoveObject(sf2, -1634.78, 688.19, 9.00, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Closed The San Fransico Deparment Gates");
return 1;
}
if (strcmp("/sfpd", cmdtext, true) == 0)
{
MoveObject(sf, -1624.64, 688.20, 14.00, 0.00, 0.00, 180.00);
MoveObject(sf2, -1634.78, 688.19, 14.00, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Opened The San Fransico Deparment Gates");
return 1;
}
if (strcmp("/sfpdb", cmdtext, true) == 0)
{
MoveObject(sf, -1701.59, 685.49, 26.66, 0.00, 0.00, 91.00);
MoveObject(sf2, -1571.70, 661.54, 9.00, 0.00, 0.00, -90.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Closed The San Fransico Deparment Gates Back");
return 1;
}
return 1;
}
if (strcmp("/sfpdmg", cmdtext, true) == 0)
{
MoveObject(sf, -1701.80, 693.02, 26.66, 0.00, 0.00, 91.00);
MoveObject(sf2, -1571.60, 653.37, 9.00, 0.00, 0.00, -90.00);
SendClientMessage(playerid, 0x0000FFAA, "You Have Opened The San Fransico Deparment MainGates");

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
Reply
#2

MoveObject only has 5 parameters you have 7 in there
See https://sampwiki.blast.hk/wiki/MoveObject
Reply
#3

Thanks For Helping I Can Release My Gates Soon!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)