dcmd need help!
#1

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(pagalba, 7, cmdtext);
return 0;
}

dcmd_pagalba(playerid, params[])
{
SendClientMessage(playerid,WHITE,"* === Pagalba ===");
SendClientMessage(playerid,WHITE,"* /VEIKSMAI /MASINA /GKOMANDOS /NARKOTIK /POLICIJA /NAMAI /INFO");
SendClientMessage(playerid,WHITE,"* /SASKAITA /INFORMACIJA /POKALBIAI (+ telefonas) /KITI /MIRES");
SendClientMessage(playerid,WHITE,"* /ZOLE /SEKLOS /PUSTI");
SendClientMessage(playerid,WHITE,"* /DKOMANDOS /AKOMANDOS (administratoriu komandos)");
SendClientMessage(playerid,WHITE,"* /MEDIKAI /DO /SAUKTI /TYLIAI");
SendClientMessage(playerid,WHITE,"* /EKOMANDOS /ZPAGALBA /VIPAS /GPS /VARTAI");
return 1;
}

That's wrong with this command ?

i got warning 203: symbol is never used: "params" warning!
Please help me
Reply
#2

Remove params[] ?
Reply
#3

If i do:


dcmd_pagalba(playerid)
{
SendClientMessage(playerid,WHITE,"* === Pagalba ===");
SendClientMessage(playerid,WHITE,"* /VEIKSMAI /MASINA /GKOMANDOS /NARKOTIK /POLICIJA /NAMAI /INFO");
SendClientMessage(playerid,WHITE,"* /SASKAITA /INFORMACIJA /POKALBIAI (+ telefonas) /KITI /MIRES");
SendClientMessage(playerid,WHITE,"* /ZOLE /SEKLOS /PUSTI");
SendClientMessage(playerid,WHITE,"* /DKOMANDOS /AKOMANDOS (administratoriu komandos)");
SendClientMessage(playerid,WHITE,"* /MEDIKAI /DO /SAUKTI /TYLIAI");
SendClientMessage(playerid,WHITE,"* /EKOMANDOS /ZPAGALBA /VIPAS /GPS /VARTAI");
return 1;
}

i've got

error 017: undefined symbol ""
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
Reply
#4

Add at your command:
pawn Код:
#pragma unused params
Reply
#5

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
Add at your command:
pawn Код:
#pragma unused params
error 017: undefined symbol "params"
warning 203: symbol is never used: "params"
:/
Reply
#6

pawn Код:
dcmd_pagalba(playerid, params[])
{
    #pragma unused params
    SendClientMessage(playerid,WHITE,"* === Pagalba ===");
    SendClientMessage(playerid,WHITE,"* /VEIKSMAI /MASINA /GKOMANDOS /NARKOTIK /POLICIJA /NAMAI /INFO");
    SendClientMessage(playerid,WHITE,"* /SASKAITA /INFORMACIJA /POKALBIAI (+ telefonas) /KITI /MIRES");
    SendClientMessage(playerid,WHITE,"* /ZOLE /SEKLOS /PUSTI");
    SendClientMessage(playerid,WHITE,"* /DKOMANDOS /AKOMANDOS (administratoriu komandos)");
    SendClientMessage(playerid,WHITE,"* /MEDIKAI /DO /SAUKTI /TYLIAI");
    SendClientMessage(playerid,WHITE,"* /EKOMANDOS /ZPAGALBA /VIPAS /GPS /VARTAI");
    return 1;
}
Try this. Thats what I ment.
Reply
#7

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
pawn Код:
dcmd_pagalba(playerid, params[])
{
    #pragma unused params
    SendClientMessage(playerid,WHITE,"* === Pagalba ===");
    SendClientMessage(playerid,WHITE,"* /VEIKSMAI /MASINA /GKOMANDOS /NARKOTIK /POLICIJA /NAMAI /INFO");
    SendClientMessage(playerid,WHITE,"* /SASKAITA /INFORMACIJA /POKALBIAI (+ telefonas) /KITI /MIRES");
    SendClientMessage(playerid,WHITE,"* /ZOLE /SEKLOS /PUSTI");
    SendClientMessage(playerid,WHITE,"* /DKOMANDOS /AKOMANDOS (administratoriu komandos)");
    SendClientMessage(playerid,WHITE,"* /MEDIKAI /DO /SAUKTI /TYLIAI");
    SendClientMessage(playerid,WHITE,"* /EKOMANDOS /ZPAGALBA /VIPAS /GPS /VARTAI");
    return 1;
}
Try this. Thats what I ment.
Thanks very much!
Reply
#8

Quote:
Originally Posted by brightas
Посмотреть сообщение
Thanks very much!
You're welcome.
Have a Merry Christmas and a Happy new Year.
Reply
#9

Mewwy cwistmas!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)