Quote:
Originally Posted by Randy More
pawn Код:
if(!strcmp(cmdtext, "/opendoor", true)) { if(PlayerToPoint(2, playerid,1551.7325,-1690.1208,1723.1050)) { if(IsACop(playerid)) { MoveObject(pddoor1,1554.59216309, -1691.42968750, 1722.10498047, 1.5); MoveObject(pddoor2,1549.44067383, -1691.4589843, 1722.10498047, 1.5); SetTimer("pdoor1", 5000, 0); SendClientMessage(playerid, COLOR_GRAD2, "* The door will be closed in 5 seconds."); ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 10.0, 0, 0, 0, 0, 0); SetTimer("OnPlayerPressButton_Delay", 500, 0); return 1; } else SendClientMessageEx(playerid, COLOR_GRAD2, "ERROR: You are not a cop!"); } else SendClientMessageEx(playerid, COLOR_GRAD2, "ERROR: You are not close to the PD door."); return 1; }
|
ERROR..
C:\Users\SleroX\Desktop\SAMP-SERVER\NEW\gamemodes\***.pwn(66957) : warning 209: function "zcmd_OnPlayerCommandText" should return a value
The line:ProxDetector(Float: f_Radius, playerid, string[],col1,col2,col3,col4,col5) {
Which it isn't part of the code..