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)
+--- Thread: Help (
/showthread.php?tid=341536)
Help -
[Lucas] - 11.05.2012
[CODE]Samps servers\Server\filterscripts\SeifAdmin.pwn(228

: warning 213: tag mismatch
Samps servers\Server\filterscripts\SeifAdmin.pwn(2289) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
These lines
Код:
SendClientMessage(playerid, ORANGE, "USAGE: /setteam [playerid/PartOfName] [team 1(Terrorist) - 0(Counter-Terrorist)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if (AccountInfo[playerid][AdminLevel] >= 1)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
2288- AccountInfo[para1][TEAM_CT] = level;
2289- AccountInfo[para1][TEAM_T] = level;
printf("[AdminCMD]: %s has switched %s to team %d.", sendername, giveplayer, level);
format(string, sizeof(string), " You have been switched to team %d by %s", level, sendername);
SendClientMessage(para1, 0xFB0000FF, string);
format(string, sizeof(string), " You have switched %s to team %d.", giveplayer,level);
SendClientMessage(playerid, 0xFB0000FF, string);
}
}
}
else
Re: Help -
Shockey HD - 11.05.2012
Never.....mind.......
Re: Help -
Yuryfury - 11.05.2012
@Shockey: He just did that to show what the error lines were.
@OP: First off, I strongly suggest using the
sscanf by ******. It makes writing commands faster and easier.
If you for some reason do not want to do that, your use of tmp is confusing. You use it towards the top to get the id, then use the same string to check for the team... (Kind of hard since you didn't post the top of the command)