What's the problem ?
#1

Hello

I want to know what's the problem ?

PHP код:
I:\New Folder (4)\New folder (2)\pawno\include\GWDEFS.inc(104) : warning 203symbol is never used"cradio2"
I:\New Folder (4)\New folder (2)\pawno\include\GWDEFS.inc(104 -- 109) : warning 203symbol is never used"dcmd_credits"
I:\New Folder (4)\New folder (2)\pawno\include\GWDEFS.inc(104 -- 109) : error 013no entry point (no public functions)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error



The full code

PHP код:
#define NZC 0xBB44BBC8
#define Admincolor 0x00FF00C8
#define COLOR_ERROR 0xD2691EAA
#define COLOR_NATO 0xFF8000C8
#define Wcolor 0x8CBF40C8
#define AC 0xFF3300C8
#define GRC 0x008040C8
#define THRC 0xEAEA15C8
#define NC 0x6600FFC8
new Text:cradio2;
#define Max_Warns 3 //Max warns :D
#define BOT_1_NICKNAME "DRDGW1"
#define BOT_1_REALNAME "Test"
#define BOT_1_USERNAME "Test"
#define BOT_2_NICKNAME "DRDGW2"
#define BOT_2_REALNAME "Test"
#define BOT_2_USERNAME "Test"
#define IRC_BOT_PASSWORD "pulkitgreat"
#define BOT_3_NICKNAME "DRDGW3"
#define BOT_3_REALNAME "Test"
#define BOT_3_USERNAME "Test"
#define IRC_ADMINCHANNEL_PASSWORD ""
#define IRC_CHANNEL_PASSWORD ""
#define IRC_SERVER "irc.teamdrd.com"
#define IRC_PORT (6667)
#define IRC_CHANNEL "#adDRD"
#define IRC_ADMINCHANNEL "#tDRD"
#define MAX_BOTS (3)
#define COLOUR_GREEN           0x33AA33AA
#define COLOUR_RED             0xAA3333AA
#define COLOUR_YELLOW          0xFFFF00AA
#define COLOUR_LIGHTBLUE       0x33CCFFAA
#define COLOUR_ORANGE          0xFF9900AA
#define PATH "PAdmin/Users/%s.ini"
#define servername "[DRD] Gang Wars v0.1!!"
#define version "1.0a"
#define RT 2000
#define TL 10
#define T2 1000
#define TEAM_A99 1
#define TEAM_GR 2
#define TEAM_NATO 3
#define TEAM_THR 4
#define CLASS_RANK1 1
#define CLASS_RANK2 2
#define CLASS_RANK3 3
#define CLASS_RANK4 4
#define CLASS_RANK5 5
#define CLASS_VIP 6
#define VIP_RANK1 1
#define VIP_RANK2 2
#define VIP_RANK3 3
#define CLASS_COP 1
#define CLASS_FBI 2
#define CLASS_ARMY 3
#define DIALOG_KILL 1
#define DIALOG_STATS 2
#define DIALOG_REGISTER 3
#define DIALOG_LOGIN 4
#define DIALOG_SUCCESS_1 5
#define DIALOG_SUCCESS_2 6
#define DIALOG_ASC 7
#define DIALOG_SKILLINFO 8
#define DIALOG_NSC 9
#define DIALOG_GANGSINFO 10
#define DIALOG_ADCMDS 10
#define DIALOG_RADIO 11
#define DIALOG_SP 12
#define DIALOG_CMDS 13
#define DIALOG_SHOP 14
#define DIALOG_GUNS 15
#define DIALOG_FSTYLE 16
#define DIALOG_CFSTYLE 17
#define DIALOG_XITEMS 18
#define DIALOG_GSC 19
#define DIALOG_TSC 20
#define DIALOG_VSC 21
#define cteam 10000000
#define sscost 1500
#define hgcost 1000
#define m4cost 2500
#define snipercost 3000
#define decost 1250
#define msmgcost 2000
dcmd_credits(playerid,params[])
{
SendClientMessage(playerid,0xFF5735,"Script by Pulkit aka Dark Killer");
return 
1;

Please help
Reply
#2

Add on php and show these lines.
Reply
#3

up up
Reply
#4

You use the variable called "cradio2" anywhere, expect for creating it.
I:\New Folder (4)\New folder (2)\pawno\include\GWDEFS.inc(104) : warning 203: symbol is never used: "cradio2"

Where are the other publics? OnPlayerSpawn etc? (you're using an INCLUDE)
I:\New Folder (4)\New folder (2)\pawno\include\GWDEFS.inc(104 -- 109) : error 013: no entry point (no public functions)
I:\New Folder (4)\New folder (2)\pawno\include\GWDEFS.inc(104 -- 109) : warning 203: symbol is never used: "dcmd_credits"
Reply
#5

Whats the problem

PHP код:
I:\New Folder (4)\New folder (2)\pawno\include\GWDEFS.inc(106) : error 001expected token";"but found "-identifier-" 
Reply
#6

What or Which Line is 106 ?
Reply
#7

this
PHP код:
dcmd_credits(playerid,params[]) 
Reply
#8

Do you even have the dcmd definition into your own PLUGIN?
Add at the top of your script:
pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Reply
#9

Do you define this Line at the Top of your Script ? :-
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Else Do you add this on your OnPlayerCommandText Callback ?, if not add this :-
Код:
dcmd(credits, 7, cmdtext);
Reply
#10

You Can Put complete Code Here
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)