Hidemode
#1

Код:
CMD:hidemode(playerid, params[])
{
    new string[128], playerid;
    if (PlayerInfo[playerid][pAdmin] >= 2) return SendClientMessageEx(playerid, COLOR_WHITE, "This command is for Admins only.");
    new
        vehID = GetPlayerVehicleID(playerid)
    ;

    if(vehID == INVALID_VEHICLE_ID)
            return 1;

    if(!g_Invisible[playerid])
    {
        g_Invisible[playerid] = true;
        LinkVehicleToInterior(vehID, playerid*10);
        for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, 0);
    }
    else
    {
        g_Invisible[playerid] = false;
        LinkVehicleToInterior(vehID,  0);
        for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, 1); // normally I'd use foreach here, but whatever
    }
    return 1;
}
error:

undefined symbol "playerid", marked line.
Reply
#2

pawn Код:
if(g_Invisible[playerid] == false)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)