25.04.2014, 12:04
I'm through making a "click textdraw = get a wep" script, but I can't seem to find out what's causing these warnings, I will be very grateful if someone could explain it to me.
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw0[playerid])
{
GivePlayerWeapon(playerid, 22, 9999);
SetPlayerArmedWeapon(playerid, 22);
}
if(clickedid == Textdraw1[playerid])
{
GivePlayerWeapon(playerid, 25, 9999);
SetPlayerArmedWeapon(playerid, 25);
}
if(clickedid == Textdraw2[playerid])
{
GivePlayerWeapon(playerid, 28, 9999);
SetPlayerArmedWeapon(playerid, 28);
}
if(clickedid == Textdraw3[playerid])
{
GivePlayerWeapon(playerid, 30, 9999);
SetPlayerArmedWeapon(playerid, 30);
}
if(clickedid == Textdraw4[playerid])
{
GivePlayerWeapon(playerid, 28, 9999);
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_YES)
{
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawShowForPlayer(playerid, Textdraw4[playerid]);
TextDrawShowForPlayer(playerid, Textdraw5[playerid]);
TextDrawShowForPlayer(playerid, Textdraw6[playerid]);
}
return 1;
}
Код:
C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(468) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(469) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(470) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(471) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(472) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(473) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(474) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(568) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(573) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(578) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(583) : warning 213: tag mismatch C:\Program Files (x86)\GTA San Andreas\SAMP\SA-MP Server\gamemodes\rdm.pwn(588) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Warnings.