Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock getParam(intstring[128], parameter, delim){ // By SuYaNw / Garfield's
- static
- szStringOut[128],
- Loop_Interator,
- LastWorldSize,
- String_Size,
- Parameters
- ;
- // Setting:
- String_Size = strlen(intstring);
- // Resetting:
- szStringOut[0] = EOS;
- Loop_Interator = 0 ;
- LastWorldSize = 0 ;
- Parameters = 0 ;
- for ( ; Loop_Interator != String_Size; ++Loop_Interator){
- if(intstring[Loop_Interator] == delim){
- if(Parameters == parameter){
- strmid(szStringOut, intstring,(parameter != 0 ? (LastWorldSize + 1) : (LastWorldSize)), Loop_Interator);
- break;
- }
- Parameters ++;
- LastWorldSize = Loop_Interator;
- }
- }
- return szStringOut;
- }
Advertisement
Add Comment
Please, Sign In to add comment