[HELP] Command
#1

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))
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)