(205) : error 035: argument type mismatch (argument 1) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: (205) : error 035: argument type mismatch (argument 1) (
/showthread.php?tid=603660)
(205) : error 035: argument type mismatch (argument 1) -
LifeRah - 26.03.2016
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(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:-}
Re: (205) : error 035: argument type mismatch (argument 1) -
Mencent - 26.03.2016
Hi!
PHP код:
sscanf(playerid, params,"s[32]",password);
to
PHP код:
sscanf(params,"s[32]",password);