17.02.2013, 09:22
i need your help with this coding.
i dont know what is going wrong here.
this is the code and also i have forwarded reset_barier
the errors i am seeing are.
please help me
i dont know what is going wrong here.
Код:
if(strcmp("/paytoll",cmdtext,true,8) == 0) { new object[20]; new playermoney; playermoney = GetPlayerMoney(playerid); playermoney = playermoney - 100; if(IsPlayerInRangeOfPoint(playerid,5,-1399.4360,-814.0004,81.6349)) { MoveObject(barier_LS_SF1,-1406.76, -810.87, 81.61,2.00, 0.00, 0.00, -86.10); format(object,13,"barier_LS_SF1"); ResetPlayerMoney(playerid); GivePlayerMoney(playerid,playermoney); SetTimerEx("reset_barier",5000,0,object,-1406.76,-810.87,81.61,0.00,90.00,-86.10); } if(IsPlayerInRangeOfPoint(playerid,5,-1396.9285,-819.9434,81.4018)) { MoveObject(barier_LS_SF2,-1389.67, -823.63, 81.16,2.00,0.00, 0.00, 271.66); ResetPlayerMoney(playerid); GivePlayerMoney(playerid,playermoney); } } public reset_barier(object[],x,y,z,rotx,roty,rotz) { MoveObject(object,x,y,z,rotx,roty,rotz); //error seen in this line return 1; }
the errors i am seeing are.
Код:
D:\san andreas\server\gamemodes\flixter_rp.pwn(339) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.