Problem dcmd!
#1

Hee guys

I have lots of dcmd codes in my script and all they work and no errors.
But when i add another cmd: dcmd(response, 8, cmdtext); it says:
Код:
C:\Users\....\Desktop\GTA San Andreas\gamemodes\coanro2.pwn(3540) : warning 202: number of arguments does not match definition
C:\Users\....\Desktop\GTA San Andreas\gamemodes\coanro2.pwn(3540) : warning 202: number of arguments does not match definition
How can i fix this?

Thanks Admigo
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        dcmd(response, 7, cmdtext);
try this
Reply
#3

Quote:
Originally Posted by [RSS]Cops_sandu
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        dcmd(response, 7, cmdtext);
try this
Sorry dont work:S Same errors!
Reply
#4

Have i reached the maximum dcmd commands?
Reply
#5

Pls nobody? I need to fix this!
Reply
#6

try this

pawn Код:
dcmd_response(playerid, params[])
{
    #pragma unused params

    /*
    *    YOUR CODE HERE
    *
    */

    return 1;
}
Also, "response" has 8 characters, not 7, so do

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(response, 8, cmdtext);
    return 0;
}
#pragma unused params = ignore the "params" parameter, only use this if you aren't using params
Reply
#7

Quote:
Originally Posted by Sinner
Посмотреть сообщение
try this

pawn Код:
dcmd_response(playerid, params[])
{
    #pragma unused params

    /*
    *    YOUR CODE HERE
    *
    */

    return 1;
}
Also, "response" has 8 characters, not 7, so do

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(response, 8, cmdtext);
    return 0;
}
#pragma unused params = ignore the "params" parameter, only use this if you aren't using params
OMG FIXED,Thank you so much!
Reply
#8

Quote:
Originally Posted by admigo
Посмотреть сообщение
OMG FIXED,Thank you so much!
No problem
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)