SA-MP Forums Archive
invalid function or declaration - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: invalid function or declaration (/showthread.php?tid=263945)



invalid function or declaration - danodanodano - 24.06.2011

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.");
}



Re: invalid function or declaration - Skaizo - 24.06.2011

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


Re: invalid function or declaration - danodanodano - 24.06.2011

yes..


Re: invalid function or declaration - Markx - 24.06.2011

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

The length of /refounds is 8, not 10.


Re: invalid function or declaration - danodanodano - 24.06.2011

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

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


Re: invalid function or declaration - danodanodano - 24.06.2011

Urgent


Re: invalid function or declaration - Skaizo - 24.06.2011

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



Re: invalid function or declaration - HyperZ - 24.06.2011

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;
}



Re: invalid function or declaration - danodanodano - 24.06.2011

doesnt work..


Re: invalid function or declaration - Wesley221 - 24.06.2011

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