[HELP] Command - 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: [HELP] Command (
/showthread.php?tid=504901)
[HELP] Command -
monster010 - 06.04.2014
How I solve this error?
Код:
C:\local\gf.pwn(25080) : error 017: undefined symbol "tmpcar"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
if(strcmp(cmd, "/toys", true) == 0)
{
if(IsAToysCar(tmpcar))
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 18)
{
SendClientMessage(playerid,COLOR_GREY,"* Ai pornit job-ul TOYS MAN !");
SendClientMessage(playerid,COLOR_GREY,"* Urmareste checkpointurile ca sa primesti banii !");
SendClientMessage(playerid,COLOR_GREY,"");
SendClientMessage(playerid,COLOR_GREY,"* Drum bun !");
SetPlayerCheckpoint(playerid, 1618.9779,-1830.1036,13.5311, 5.0);
}
else
{
SendClientMessage(playerid,COLOR_GREY,"* You are not a TOYS MAN *");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"* You are not in a car TOYS MAN *");
}
}
And the line is
Код:
if(IsAToysCar(tmpcar))
Re: [HELP] Command -
doreto - 06.04.2014
pawn Код:
if(strcmp(cmd, "/toys", true) == 0)
{
if(IsAToysCar(GetPlayerVehicleID(playerid)))
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 18)
{
SendClientMessage(playerid,COLOR_GREY,"* Ai pornit job-ul TOYS MAN !");
SendClientMessage(playerid,COLOR_GREY,"* Urmareste checkpointurile ca sa primesti banii !");
SendClientMessage(playerid,COLOR_GREY,"");
SendClientMessage(playerid,COLOR_GREY,"* Drum bun !");
SetPlayerCheckpoint(playerid, 1618.9779,-1830.1036,13.5311, 5.0);
}
else
{
SendClientMessage(playerid,COLOR_GREY,"* You are not a TOYS MAN *");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"* You are not in a car TOYS MAN *");
}
}
Problem was that you are using variable that you haven't define.