02.11.2018, 12:37
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;
}

