Undefined symbol
#1

I got this error:


Код:
C:\Users\Nikola\Desktop\SAIMP\WeaponShop.pwn(374) : error 017: undefined symbol "x"
C:\Users\Nikola\Desktop\SAIMP\WeaponShop.pwn(376) : error 017: undefined symbol "x"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
This is the whole thing.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/ammu", cmdtext, true, 5) == 0)
	{
	    SetPlayerInterior(playerid, 6);
		SetPlayerPos(playerid, 316.524993,-167.706985,999.593750);
		return 1;
	}
	if (strcmp("/return", cmdtext, true, 5) == 0)
	{
	    GetPlayerPos(playerid, x, y, z);
	    SetPlayerInterior(playerid, 0);
	    SetPlayerPos(playerid, x, y, z);
	}
	return 0;
}
I need help asap
Reply
#2

Код:
if (strcmp("/return", cmdtext, true, 5) == 0)
	{
            new Float:x, Float:y,Float:z;
	    GetPlayerPos(playerid, x, y, z);
	    SetPlayerInterior(playerid, 0);
	    SetPlayerPos(playerid, x, y, z);
	}
Reply
#3

pawn Код:
if (strcmp("/return", cmdtext, true, 5) == 0)
    {
            new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, x, y, z);
    }
Reply
#4

Quote:
Originally Posted by 0x41726d79
Посмотреть сообщение
pawn Код:
if (strcmp("/return", cmdtext, true, 5) == 0)
    {
            new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, x, y, z);
    }
Do not write the same text, you free posting.
Reply
#5

Quote:
Originally Posted by TheNerka
Посмотреть сообщение
Do not write the same text, you free posting.
That's what you just did is freeposting.
Reply
#6

Quote:
Originally Posted by TheNerka
Посмотреть сообщение
Do not write the same text, you free posting.
not, i had anti spam and i could not post.
and when I posted, I saw as there exist another answer
Reply
#7

Ok ok no arguments but anyways ty for the help guys! +rep
Reply
#8

Hmm i got this

Код:
C:\Users\Nikola\Desktop\SAIMP\WeaponShop.pwn(375) : warning 213: tag mismatch
C:\Users\Nikola\Desktop\SAIMP\WeaponShop.pwn(375) : warning 213: tag mismatch
C:\Users\Nikola\Desktop\SAIMP\WeaponShop.pwn(375) : warning 213: tag mismatch
C:\Users\Nikola\Desktop\SAIMP\WeaponShop.pwn(377) : warning 213: tag mismatch
C:\Users\Nikola\Desktop\SAIMP\WeaponShop.pwn(377) : warning 213: tag mismatch
C:\Users\Nikola\Desktop\SAIMP\WeaponShop.pwn(377) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
Reply
#9

Just re-write that line(don't copy-paste).
Reply
#10

you are sure as the variables are Float?
on my blank project i don't get errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)