#1

1 error i dunno how to fix i'm begginer

Code:
C:\Users\PC01\Desktop\New folder\LSCNR.pwn(6843) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.

Code:
CMD:takedrugs(playerid,params[])
{
	new string[128];
	if(sscanf(params,""))
	{
	   SendClientMessage(playerid,COLOR_ERROR,"USAGE: /takedrugs.");
	   return 1;
	}
	if(TD[playerid] == 1)
	{
	   SendClientMessage(playerid,COLOR_ERROR,"You are already taking drugs. please wait before you try taking them again.");
	   return 1;
	}
	if(Jailed[playerid] >= 1)
	{
	   SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while you are jailed.");
	   return 1;
	}
	if(JailedA[playerid] >= 1)
	{
	   SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while you are jailed.");
	   return 1;
	}
	if(Cuffed[playerid] == 1)
	{
	   SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while your are placed in handcuffs.");
	   return 1;
	}
	if(IsKidnapped[playerid] == 1)
	{
	   SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while you are kidnapped.");
	   return 1;
	}
	if(Freezed[playerid] == 1)
	{
	   SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while you are freezed.");
	   return 1;
	}
	IncreaseWantedLevel(playerid,3);
	HasWeed[playerid] -= 10;
	High[playerid] = 20;
	TD[playerid] = 1;
	ApplyAnimation(playerid,"PED","WALK_drunk",4.1,1,1,1,0,0,1);
	SendClientMessage(playerid,COLOR_ORANGE,"You have smoked 10 grams of weed. You are feeling very HIGH now.");
	SendClientMessage(playerid,GetPlayerWantedLevel(playerid),"Crime Committed - Drug Abuse - Wanted Level Increased.");
	return 1;
}
Reply
#2

that warning means you are using a array that is never been touched or used
just simply remove
pawn Code:
new string[128];
should fix your warning
Reply
#3

Fixed now thanks but i'm worried how to run my server with amx/pawno only?
(is there any tutorial how to run the server with amx/pawno only?) or
Can we use a teamviewer and controll my computer and fix/start it please?
Reply
#4

Just post here what problem are you facing, so others can help too
here is the tutorial
https://sampforum.blast.hk/showthread.php?tid=49456
Reply
#5

When i run the server gamemode is not running and it says on mode "unknown"
Code:
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[21:16:11] 
[21:16:11] Server Plugins
[21:16:11] --------------
[21:16:11]  Loaded 0 plugins.

[21:16:11] 
[21:16:11] Filterscripts
[21:16:11] ---------------
[21:16:11]   Loading filterscript 'LSCNR.amx'...
[21:16:11]   Loaded 1 filterscripts.

[21:16:11] Script[gamemodes/lscnr.amx]: Run time error 19: "File or function is not found"
[21:16:11] Number of vehicle models: 0
Reply
#6

you need plugins where did you download gamemode from?
Reply
#7

I just found it somewhere else i dont remember where! but i'll try to check
Reply
#8

founded it
Reply
#9

add this line in your server.cfg after filterscript
Code:
plugins sscanf streamer
and make sure you have sscanf.dll and streamer.dll in plugins folder which should be inside the server files
Reply
#10

fixed thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)