Undefined symbol - 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: Undefined symbol (
/showthread.php?tid=542351)
Undefined symbol -
TheKnown - 18.10.2014
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
Re: Undefined symbol -
TheNerka - 18.10.2014
Код:
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);
}
Re: Undefined symbol -
0x41726d79 - 18.10.2014
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);
}
Re: Undefined symbol -
TheNerka - 18.10.2014
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.
Re: Undefined symbol -
zaibaslr2 - 18.10.2014
Quote:
Originally Posted by TheNerka
Do not write the same text, you free posting.
|
That's what you just did is freeposting.
Re: Undefined symbol -
0x41726d79 - 18.10.2014
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
Re: Undefined symbol -
TheKnown - 18.10.2014
Ok ok no arguments but anyways ty for the help guys! +rep
Re: Undefined symbol -
TheKnown - 18.10.2014
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.
Re: Undefined symbol -
RockyGamer - 18.10.2014
Just re-write that line(don't copy-paste).
Re: Undefined symbol -
0x41726d79 - 18.10.2014
you are sure as the variables are Float?
on my blank project i don't get errors.