invalid function or declaration
#1

Whats wrong with it..?


Код:
if (strcmp("/refunds", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xDABB3EAA, "__________________About Refunds_____________________");
SendClientMessage(playerid,0xDABB3EAA, "We are refunding stats, We refund without SS's (ScreenShots), This means, you can get how much YOU want!");
SendClientMessage(playerid,0xDABB3EAA, "About Helpers/Admins/VIP/Factions,We do not refund Helpers, If you wish to become helper, You must help our community.");
SendClientMessage(playerid,0xDABB3EAA, "About Admins, If you wish to become admin, You should be active, Helpfull person, and have some patience.");
SendClientMessage(playerid,0xDABB3EAA, "About VIP, We are not refunding VIP, If you wish to become VIP, You must invite, atleast 3 players, Or more.");
SendClientMessage(playerid,0xDABB3EAA, "About Factions, If you wish to be in faction, (cop,etc) You should apply on forums, we dont refund factions.");
}
Reply
#2

if (strcmp("/refunds", cmdtext, true, 10) == 0)/it gives error?
Reply
#3

yes..
Reply
#4

if (strcmp("/refunds", cmdtext, true, == 0)

The length of /refounds is 8, not 10.
Reply
#5

Quote:
Originally Posted by Markx
Посмотреть сообщение
if (strcmp("/refunds", cmdtext, true, == 0)

The length of /refounds is 8, not 10.
Doesnt work.
Reply
#6

Urgent
Reply
#7

Код:
if(strcmp(cmdtext,"/refunds", true, 10) == 0)
or
Код:
if(strcmp(cmdtext, "/refunds", true) == 0)
Reply
#8

pawn Код:
if(!strcmp(cmdtext, "/refunds", true))
{
    SendClientMessage(playerid,0xDABB3EAA, "__________________About Refunds_____________________");
    SendClientMessage(playerid,0xDABB3EAA, "We are refunding stats, We refund without SS's (ScreenShots), This means, you can get how much YOU want!");
    SendClientMessage(playerid,0xDABB3EAA, "About Helpers/Admins/VIP/Factions,We do not refund Helpers, If you wish to become helper, You must help our community.");
    SendClientMessage(playerid,0xDABB3EAA, "About Admins, If you wish to become admin, You should be active, Helpfull person, and have some patience.");
    SendClientMessage(playerid,0xDABB3EAA, "About VIP, We are not refunding VIP, If you wish to become VIP, You must invite, atleast 3 players, Or more.");
    SendClientMessage(playerid,0xDABB3EAA, "About Factions, If you wish to be in faction, (cop,etc) You should apply on forums, we dont refund factions.");
    return 1;
}
Reply
#9

doesnt work..
Reply
#10

pawn Код:
if(!strcmp(cmdtext, "/refunds", true, 8))
This should work, and otherwise: use ZCMD/DCMD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)