26.03.2016, 08:15
Hello guys, i am getting this error in my script:-
(205) : error 035: argument type mismatch (argument 1)
The line are these:-
(205) : error 035: argument type mismatch (argument 1)
The line are these:-
PHP код:
Line 183:-YCMD:gate(playerid, params[], help) {
Line 184:- for(new i=0;i<MAX_GATE_HANDLERS;i++) {
Line 185:- if(strlen(GateHandlers[i][EGateHandler_Cmd]) > 0) {
Line 186:- new res = CallRemoteFunction(GateHandlers[i][EGateHandler_Cmd], "ds", playerid, params);
Line 187:- if(res >= 0) {
Line 188:- GateHandlers[i][EGateHandler_LastMoveTime] = gettime();
Line 189:- return 1;
Line 190:- } else if(res == GATE_MOVING) {
Line 191 SendClientMessage(playerid, X11_TOMATO_2, "The gate is moving!");
Line 192 return 1;
Line 193 } else if(res == GATE_NO_PERMISSION) {
Line 194 SendClientMessage(playerid, X11_TOMATO_2, "You don't have access to that gate");
Line 195 return 1;
Line 196 }
Line 197 }
Line 198:- }
Line 199:- new gate = findClosestGate(playerid);
Line 200:- if(gate == -1) {
Line 201:- SendClientMessage(playerid, X11_TOMATO_2, "You are too far away.");
Line 202:- return 1;
Line 203:- }
Line 204:- new password[32];
Line 205:- sscanf(playerid, params,"s[32]",password);
Line 206:- tryOpenGate(playerid, gate, password);
Line 207:- return 1;
Line 208:-}