forward AccidentSSCANF( playerid, command[], params[] );
public OnPlayerCommandText( playerid, cmdtext[ ] ) {
new params[ 356 + 1 ],
Spaces,
i_Space,
g_szrCommand[ 192 + 1 ];
i_Space = strfind( cmdtext, \" \" );
format( g_szrCommand, (192), \"%s\", cmdtext );
strdel( g_szrCommand, i_Space, strlen(cmdtext) );
format( params, (356), \"%s\", cmdtext );
strdel( params, (0), i_Space + 1 );
for( new x; x < strlen(params); x++ ) {
if( params
Spaces ++;
}
}
if( i_Space == (-1) || Compare(params, g_szrCommand) || Spaces == strlen(params) ) return CallLocalFunction( \"AccidentSSCANF\", \"iss\", playerid, g_szrCommand, \" \" );
CallLocalFunction( \"AccidentSSCANF\", \"iss\", playerid, g_szrCommand, params );
return 1;
}
Ez benne van?