25.03.2013, 05:45
Код:
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; }
undefined symbol "playerid", marked line.