Well i'm trying to implement pawn into my app (pawn the embedded scripting language) and while including the amxprocess.c i get these errors:

Error 1 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 524
Error 2 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 527
Error 3 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 530
Error 4 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 533

With this section of code:

if ((ps[idx].type=='i' || ps[idx].type=='u' || ps[idx].type=='f') && ps[idx].range==1) {
        switch (ps[idx].size) {
        case 8:
          push((unsigned char)(ps[idx].v.val & 0xff);
          break;
        case 16:
          push((unsigned short)(ps[idx].v.val & 0xffff));
          break;
        default:
          push(ps[idx].v.val);
        } /* switch */
      } else {
        push(ps[idx].v.ptr);
      } /* if */

Could someone tell me what is wrong with this and how to fix it?

> push((unsigned char)(ps[idx].v.val & 0xff);
Well this line is missing a )

Sorry i pasted a bit of old code, however the missing ) was not my issue, it was the errors above

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.