SA-MP Forums Archive
HELP! - 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: HELP! (/showthread.php?tid=100589)



HELP! - MB@ - 05.10.2009

I'm trying to make an /makefbi command but i got a few warnings

Код:
public IsFbiTeam(playerid, cmdtext[])
{

new cmd[128];
new tmp[128];
new idx;
new giveplayername[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new string[128];
cmd = strtok(cmdtext,idx);

if(strcmp("/fbihelp", cmdtext, true, 8) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW,"FBI Help:");
SendClientMessage(playerid, COLOR_WHITE, "/arrest - if somebody has broke a law you can arrest him");
SendClientMessage(playerid, COLOR_WHITE, "/duty [on]- puts you on duty");
SendClientMessage(playerid, COLOR_WHITE, "/duty [off]- puts you off duty");
SendClientMessage(playerid, COLOR_WHITE, "/callbackup - calls the police, or the army for backup");
return 1;


}
if(strcmp("/makefbi",cmdtext, true) == 0)
{


}
return 0;
}
Код:
C:\Documents and Settings\Administrator\Desktop\TestServer\gamemodes\NexGeneration.pwn(835) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Administrator\Desktop\TestServer\gamemodes\NexGeneration.pwn(834) : warning 204: symbol is assigned a value that is never used: "sendername"
C:\Documents and Settings\Administrator\Desktop\TestServer\gamemodes\NexGeneration.pwn(833) : warning 204: symbol is assigned a value that is never used: "giveplayername"
C:\Documents and Settings\Administrator\Desktop\TestServer\gamemodes\NexGeneration.pwn(831) : warning 204: symbol is assigned a value that is never used: "tmp"

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Can you please help?


Re: HELP! - Correlli - 05.10.2009

These warnings means that you're never using those symbols in your script, so they're unused.