26.10.2013, 06:31
i want to know what is the proplem in this code it works good but i got these two warnings
i know what are you going to say these are just 2 warnings its not matter why do you want to solve it
because i get crazy when i see them
pawn Код:
dcmd_getpos(playerid,params[])
{
new ID;
new string[128];
new Float: x,y,z;
if(sscanf(params,"u",ID))
{
SendClientMessage(playerid,COLOR_RED,"[ERROR] {FFFFFF}Usage: /getpos (Player Name/ID)");
return 1;
}
if(!IsPlayerConnected(ID))
{
format(string,sizeof(string),"[ERROR] {FFFFFF}The player ID (%d) is not connected to the server.",ID);
SendClientMessage(playerid,COLOR_RED,string);
return 1;
}
if(IsSpawned[ID] !=1)
{
format(string,sizeof(string),"[ERROR] {FFFFFF}%s(%d) isn't spawned you cannot use this command on him",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_RED,string);
return 1;
}
GetPlayerPos(ID,x,y,z);
format(string,sizeof(string),"[ADMIN] %s(%d)'s pos is: %.4f%,%.4f%,%.4f%",PlayerName(ID),ID,x,y,z);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
Код:
C:\Users\maher\Desktop\ahmad ghanayem\ълрйеъ\Iron-Players\gamemodes\Iron-Players.pwn(7470) : warning 213: tag mismatch C:\Users\maher\Desktop\ahmad ghanayem\ълрйеъ\Iron-Players\gamemodes\Iron-Players.pwn(7470) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
because i get crazy when i see them