(205) : error 035: argument type mismatch (argument 1)
#1

Hello guys, i am getting this error in my script:-
(205) : error 035: argument type mismatch (argument 1)
The line are these:-
PHP код:
Line 183:-YCMD:gate(playeridparams[], 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"playeridparams);
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(playeridX11_TOMATO_2"The gate is moving!");
Line 192                return 1;
Line 193            } else if(res == GATE_NO_PERMISSION) {
Line 194                SendClientMessage(playeridX11_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(playeridX11_TOMATO_2"You are too far away.");
Line 202:-        return 1;
Line 203:-    }
Line 204:-    new password[32];
Line 205:-    sscanf(playeridparams,"s[32]",password);
Line 206:-    tryOpenGate(playeridgatepassword);
Line 207:-    return 1;
Line 208:-} 
Reply
#2

Hi!

PHP код:
sscanf(playeridparams,"s[32]",password); 
to
PHP код:
sscanf(params,"s[32]",password); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)