04.08.2010, 16:42
Hi. I get the warnings Tag Mismatch, even though, I don't see any problems with it :S..
I'm getting the warning at GetPlayerPos.
pawn Код:
if(strcmp(cmd, "/x", true)==0)
{
new tmp1[256];
tmp1= strtok(cmdtext, idx);
// tmp2= strtok(cmdtext, idx);
if(!strlen(tmp1))
{
SendClientMessage(playerid, COLOR_BASIC, "Correct usage: /x [value]");
return 1;
}
new xvalue2 = strval(tmp1);
new xvalue1;
new ypos;
new zpos;
GetPlayerPos(playerid, xvalue1, ypos, zpos); <---- THIS LINE!!
SetPlayerPos(playerid, xvalue1 + xvalue2 , ypos, zpos);
return 1;
}